Jump to content

is there another way to set %CDROM%


Recommended Posts

hi everyone

is there another way to tell vista to set %CDROM% as i am having a little error box when installing vista on the C:\ drive

as i have more then ten drivers on my machine after few error box the vista recognise my visa dvd then the wpi start running

these error boxes dont appear at all when installing vista on d:\ drive or on any other driver or on the virtual

so my question is is there another way to do that

i hope someone understood what i mean in an attachment the command i am using

@Echo off

cWnd /hide @

Echo

FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST "%%i:\sources\install.wim" (SET CDROM=%%i:& goto DONECD)

:DONECD

rem *** XPlode ***

%CDROM%\WPI\XPlode.exe

goto QUIT

:QUIT

exit

Link to comment
Share on other sites


try this

@ECHO OFF

SET CDROM=NULL

:SearchCDROM

FOR %%i IN (C 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:\sources\install.wim SET CDROM=%%i:\

IF NOT "%CDROM%"=="NULL" GOTO WPI

GOTO SearchCDROM

:WPI

ECHO CDROM=%CDROM%

%CDROM%\WPI\XPlode.exe

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...