Computing.Net > Forums > Disk Operating System > Passing Parameters between multiple batch files

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.

Passing Parameters between multiple batch files

Reply to Message Icon

Name: ian
Date: April 14, 1999 at 19:27:58 Pacific
Comment:

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 command

What 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 servers

PROBLEM
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 file

It 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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Dos Freezes with Himem.sy... File sharing for MSDOS?



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Passing Parameters between multiple batch files

calling multiple batch files within a batch file www.computing.net/answers/dos/calling-multiple-batch-files-within-a-batch-file/3482.html

Pass %%a in FOR as param to batch file www.computing.net/answers/dos/pass-a-in-for-as-param-to-batch-file/10730.html

passing parameters to batch? www.computing.net/answers/dos/passing-parameters-to-batch/14305.html