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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file to rename and move

Reply to Message Icon

Name: droque
Date: June 30, 2005 at 13:16:16 Pacific
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



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 30, 2005 at 22:08:42 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file to rename and move

Batch File to open and move .ttf fi www.computing.net/answers/programming/batch-file-to-open-and-move-ttf-fi/12043.html

Batch file to rename file(s) in dir www.computing.net/answers/programming/batch-file-to-rename-files-in-dir/13357.html

Batch file to rename .csv field www.computing.net/answers/programming/batch-file-to-rename-csv-field/19279.html