Computing.Net > Forums > Programming > Batch file to rename and move

Batch file to rename and move

Reply to Message Icon

Original Message
Name: droque
Date: June 30, 2005 at 13:16:16 Pacific
Subject: Batch file to rename and move
OS: Windows XP
CPU/Ram: Pentium 4 504MB Ram
Comment:

Newbie here.
I am looking for a batch file that will rename the files in a directory to *.log and then move them to a specified directory.
Thanks


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: June 30, 2005 at 22:08:42 Pacific
Subject: Batch file to rename and move
Reply: (edit)

Hi,

If the files are in d:\OLDplace and they need to go to f:\NEWplace nad they are, let's say, text files:

::====================
@echo off
ren d:\OLDplace\*.txt *.log
move d:\OLDplace\*.log f:\NEWplace
::====================


HTH


M2


If at first you don't succeed, you're about average.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Batch file to rename and move

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge