Dear topic Members
Can i make one batch file from three? Here is the 3 batch files.:
tpo.bat(this need to be the first)
robocopy D:\ftp\TPO\y\Kozos\tpo y:\tpo /mir /r:1 /W:1 /log:c:\cmd\robocopy_tpo.log
second: szallitolevel.bat
robocopy "y:\Leigazolt szallitolevelek" "d:\ftp\tpo\y\Kozos\Partnerek\Leigazolt szallitolevelek" /mir /r:1 /W:1 /log:c:\cmd\robocopy_szallitolevel.log
third: megrendeles.bat
robocopy y:\megrendeles d:\ftp\tpo\y\kozos\megrendeles /mir /r:1 /W:1 /log:c:\cmd\robocopy_megrendeles.log
Thanks for any help
How to make one batch file from three
Moderator: DosItHelp
Re: How to make one batch file from three
Yes. Just put all three lines of code into one batch file.
Re: How to make one batch file from three
did not work...
Re: How to make one batch file from three
vanekgy wrote:did not work...
That really does not tell us much at all. We are not omniscient. You are going to have to describe what is going on.
Putting all three lines of code into one batch file should be no different. There would be absolutely no point to have batch scripts or any other type of scripting language if you could not put more than one line of code in them.
Re: How to make one batch file from three
The other option is to create a master script that CALLs the three smaller ones.
master.bat
Dave Benham
master.bat
Code: Select all
call tpo.bat
call szallitolevel.bat
call megrendeles.bat
Dave Benham
Re: How to make one batch file from three
vanekgy wrote:did not work...
To echo what Squashman has said:
We need to know why it did not work, to figure out where you went wrong.
Things like what you saw on the screen, error messages that appeared.
It can be as simple as using the wrong name for the batch file - but to know
that we need details of what happens/what you did.