Computing.Net > Forums > Programming > Batch script for file copy

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

Reply to Message Icon

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.

Eric



Sponsored Link
Ads by Google
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 script for file copy

Batch Script for setting up www.computing.net/answers/programming/batch-script-for-setting-up/12506.html

Batch script to add/remove header n trailer www.computing.net/answers/programming/batch-script-to-addremove-header-n-trailer/19351.html

XP Pro Batch Script -FOR loop issue www.computing.net/answers/programming/xp-pro-batch-script-for-loop-issue/16073.html