ryoga Posted May 16, 2005 Share Posted May 16, 2005 when i try to use this command (dos 7.0)for %%i in (C D E F G) do if exist %%i:cdboot.txt set cd=%%i:it 's shown thatDevice is not ReadyR(etry), A(bort) or I(gnore) ?like thisi knew why but don't know how to stop ithow i gonna do?anyone can help me, pleaze Link to comment Share on other sites More sharing options...
DLF Posted May 16, 2005 Share Posted May 16, 2005 FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:Everyone's using this code now, supplied by someone who's name I have unfortunately forgotten.ALL credit to him though. Link to comment Share on other sites More sharing options...
Yzöwl Posted May 16, 2005 Share Posted May 16, 2005 You have missed a backslash from before cdboot.txtif exist %%i:\cdboot.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now