Home / Microsoft / Microsoft DOS / Batch File Help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Batch File Help  (Read 1967 times)
salc
Guest
« on: June 16, 2004, 06:24:10 PM »

Can someone tell me how to create a batch file that will copy a file from one directory then copy it to another directory, however when coping it, the script will rename the file eg. test.txt test1.txt
IP logged
Fred
Guest
« Reply #1 on: June 17, 2004, 08:07:50 AM »

How about this:
copy "c:\directory1\file1.txt"  "c:\directory2\file2.txt"
copy "c:\directory1\file1.txt"  "c:\directory3\file3.txt"

I presume you do not want to rename the original file.


IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Batch File Help « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.063 seconds with 18 queries.