Jump to content

Copying Problem


Recommended Posts

... or you could Dynamically find the Letter assigned to cd-rom drive in the Registry, using something like this:

:: For Windows 2000/XP
SETLOCAL
SET CDROMS=
::Following tempfilenames are just arbitrary
SET 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 %%A
SET CDROMS
DEL %Temp1%
DEL %Temp2%
ENDLOCAL & SET CDROMS=%CDROMS%
GOTO:EOF

:ParseW2K
IF DEFINED CDROMS (SET CDROMS=%CDROMS%,%1:) ELSE (SET CDROMS=%1:)
GOTO:EOF

found on this excellent batch file page, slightly edited to make it simpler:

http://www.robvanderwoude.com/amb_cdrom.html#CdRom2

http://www.robvanderwoude.com

jaclaz

Link to comment
Share on other sites


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...