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 for file copying
Name: hydeto Date: January 20, 2006 at 11:52:50 Pacific OS: win nt CPU/Ram: p3
Comment:
Hi, May I know how can I write a batch file to copy multiple files(few thousand) from different raid drive and respective directory? I had the database of the whole list of respective file names and it's directory stored. I planned manually copy & paste all the files that I wish to copy out in the script file. And it will just copy all the files I want without me doing it one by one. Thanks!
Name: uli_glueck Date: January 20, 2006 at 13:00:06 Pacific
Reply:
If you have stored the list with the files you want to copy you can read it out with a for loop. Please try it with echo if it reads out what it should before you do copy. Evtl. you have to skip the first 2 lines.
@echo off setlocal set source=your list set target=your destination folder for /f %%a in ('type %source%') do xcopy %%a %target% endlocal :EOF
hope this helps uli
0
Response Number 2
Name: uli_glueck Date: January 20, 2006 at 13:05:45 Pacific
Reply:
Oh, I didn“t read you post carefully. Different raid drives and respective directories might make it a bit complicated. You might have to filter with find and need a few if statements. Depends on your list.
Summary: Hi, I need to run a particular se of commands repetatively for some number of times provided by userin for loop. I am doing it this way user input the no of arguments and arguments i.e 3 d:\\input.txt...
Summary: I would like to write a batch file that would copy files from one directory to another but not overwrite OR abbort if a file already exists with that name. If a file already exists, i would like it to...
Summary: Hi all, I have been having problems writing a batch file to automate a process at work... Basically we have provided a folder for users to paste Lotus Notes archive .nsf files into which will be copie...