jaclaz Posted August 28, 2004 Share Posted August 28, 2004 ... or you could Dynamically find the Letter assigned to cd-rom drive in the Registry, using something like this::: For Windows 2000/XPSETLOCALSET CDROMS=::Following tempfilenames are just arbitrarySET Temp1=%Temp%.\tempcd1.$$$SET Temp2=%Temp%.\tempcd2.$$$START /WAIT REGEDIT /E %Temp1% "HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices"TYPE %Temp1% > %Temp2%TYPE %Temp2% | FIND "\\DosDevices\\" | FIND /V "\\DosDevices\\A:" | FIND "=hex:5c," > %Temp1%FOR /F "tokens=3 delims=\:" %%A IN (%Temp1%) DO CALL :ParseW2K %%ASET CDROMSDEL %Temp1%DEL %Temp2%ENDLOCAL & SET CDROMS=%CDROMS%GOTO:EOF:ParseW2KIF DEFINED CDROMS (SET CDROMS=%CDROMS%,%1:) ELSE (SET CDROMS=%1:)GOTO:EOFfound on this excellent batch file page, slightly edited to make it simpler:http://www.robvanderwoude.com/amb_cdrom.html#CdRom2http://www.robvanderwoude.comjaclaz Link to comment Share on other sites More sharing options...
ctfb Posted August 31, 2004 Share Posted August 31, 2004 Thanks to everybody for the responses. The problem ended up being a carraige return at the end of the xcopy line in the i386copy.cmd file. I pressed enter at the end of the line, save the file and tested, it worked.-Mike 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