Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file 1

Status
Not open for further replies.
Mar 14, 2002
711
US
Is there a way to call another batch file using a batch file in Windows? For some reason when I run the command in the command window (not using the batch file) it works, but as soon as I put the same command in the batch file, it fails??

This is what I am trying to batch:

D:

CD pi\adm

pibackup.bat d:\pi d:\pibackup 1

It works in a command prompt, but does not work when I put the same commands in a batch file??

Any ideas is greatly appreciated!
 
The line d: may put you into an uncertain directory under d drive. If pi\adm is under d:\, change the line.
>CD pi\adm
to
[tt]CD [red]\[/red]pi\adm[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top