Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I trying to create batch file /s that would do the following things:
1st - Copy files between file servers (3 or more file servers)
2nd - Create a log file that would list the files that were copied & the time it was moved to that server
3rd - Name the log file with the user inputted value - preferably mm/dd/yyyy format with an extension .log
4th - Do all this things using one commandWhat I did
1st - Create a mother batch file that will do the following things
= Input the log-file name, target directories
= Use the FOR command to run a separate batch file which would do the actual copying of files to the different serversPROBLEM
I cannot run the switches on the following things
1. passing of log name since i used the %1 on the root batch file
2. passing of target servers since i used the %2 on the root batch fileIt is my understanding the when you use the CALL command you should specify the parameters that you're passing to the child batch file. Also on the child batch file I really don't know how to specify what to receive since I used these two values on the root batch (%1, %2)
PLEASE HELP

![]() |
Dos Freezes with Himem.sy...
|
File sharing for MSDOS?
|

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