|
Answer» [size=14]Hi
I need your help guys i have been trying to solve my problem for three days
I've made bootable cd to restore an image or to run any program from the cd my problem comes up when I tried to develop my cd because now I have 1 cd rom and 1 cd writer the new idea is to use if to check if cd is in drive (S) or in drive (T) to run the correct line here is my batch
@ECHO off echo.
echo Loading... echo.
:TryS
if not exist S:\prog\X.exe goto TryT goto RUNS
:RUNS Call S:\Prog\X.exe goto RUNMAIN
:TryT if not exist T:\prog\X.exe goto RUNMAIN goto RUNT
:RUNT Call T:\Prog\X.exe goto RUNMAIN
:RUNMAIN a: Main.bat[/size]Need a little more INFO here. What OS? At what point is the batch file failing or is it runnung at all? If booting to DOS, did you load command.com?[size=16]my os is xp but i am using bootable cd so i am using dos
The problem happens when the batch look for the drive S: (cd rom) and found no cd so it cant continue because i boot from the other cd rom[/size]This post can now be REFERENCED in the DOS forum under "I dont know how to do a batch".
Where is GX1_Man with his dental practice? Pulling teeth, my *CENSORED*...more like blood from a stone
|