Bacth file?

Associate
Joined
19 Jul 2004
Posts
513
Morning all, i have a folder called "back ups" in that folder i have 100 other folders listed by IP address's. in each of the ip folders i have a CMD file that opens FTP and calls a scripts "script.txt" which is also in the ip folder.

Now problem is i want to create a bathc file to open the lot at once.

or preferably 15 at a time then a "pause" so i have to press enter to continue.

The script i wrote was

cd
cd C:\backup\192.168.1.76
ftp.cmd
cd C:\backup\192.168.1.74
ftp.cmd
cd C:\backup\192.168.1.73
ftp.cmd
cd C:\backup\192.168.1.72
ftp.cmd
cd C:\backup\192.168.1.71
ftp.cmd
pause

no it kinda works as in the first one starts and backups up but thats it.

The problem is after it executes the first ftp.cmd it doesnt carry on with the script instead it "bye" as this is the last thing in the script in the IP folders.

Anybody have any ideas?
 
Its ok now mate.

I have made a script or bacth file.

cd
cd C:\backup\backup1
call ftp.cmd
cd C:\backup\backup2
call ftp.cmd
etc....
cls
@Echo off
echo
All backups done.
pause

Basicaly i was missing the call funtion.

Cheers anyways all - thought id post incase sombody can sue it for somthing

Gaz
 
Back
Top Bottom