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 script for file copy
Name: eblanks Date: November 15, 2006 at 06:49:51 Pacific OS: Win2k CPU/Ram: Intel 3ghz Product: IBM
Comment:
I am working on a batch script that would update 7 different file servers that run the exact same application. The servers have identical directory structures. My goal is to create a mirrored directory structure that is empty and whenever and updated file is available I would put it in the appropriate "mirror" directory. The script would then need to recognize the file name, go to the production directory and make a backup copy of that same file, then copy the new file into the production location. I have tried the "For" command and can roughly get it to work, but it copies all of the production files to backup instead of just the one or two that I am trying to upgrade. I have also considered trying to declare the new file names as variables. I can easily get one file name as a variable, but if I have multiple files, I cannot figure out how to declare multiple variables. Any help is greatly appreciated.
Summary: To explain it more. The batch says for example: Please enter your Steam Username: (I enter mine) Mysticssjgoku4 I set my path like: Copy "files\file.wad" "C:\Program Files\Valve\Steam\Steamapps\%User...
Summary: I am new to Batch Script for Windows so hoping you can help me out. There are two things I need: 1) Say a1.csv is in C:\batch and has below info: aaa 111 222 333 bbb 400 bbb 222 111 444 ccc 200 ccc 3...
Summary: I have a FOR loop in a Batch Script on XP Pro. FOR /L %%A IN (1 1 %engine_instance%) DO ( type %logs_dir%\sim_engine_%%A.log | FIND "Customers Processed This Run" > %logs_dir%\run_sim_temp_%%A.txt ...