gai-jin Posted August 19, 2004 Posted August 19, 2004 I'm using cd2.cmd as listed below to ask a user to insert disc 2 at the beginning of runonceex. Is it possible to use a gui propmt with an OK button instead of the cmd prompt window popping up at this point?How could I do this?THanksGai-jinCLS@ECHO OFFECHO.ECHO Ejecting CD-ROM Drives...ECHO If you are using a cd rom please remove it fromECHO the cdrom drive and If you have a second cd placeECHO it in the drive at this time please.ECHO.ECHO.ECHO Wait till the cdrom/dvd drive quits blinkingECHO and then press any key to continue.start %systemdrive%\install\Tools\cdr openECHO.PAUSEIF EXIST %systemdrive%\install\runonce.cmd GOTO RUNBATCHSET CDROM2=IF EXIST D:\install\runonce.cmd SET CDROM2=D:IF EXIST E:\install\runonce.cmd SET CDROM2=E:IF EXIST F:\install\runonce.cmd SET CDROM2=F:IF EXIST G:\install\runonce.cmd SET CDROM2=G:IF EXIST H:\install\runonce.cmd SET CDROM2=H:IF EXIST I:\install\runonce.cmd SET CDROM2=I:IF EXIST J:\install\runonce.cmd SET CDROM2=J:IF EXIST K:\install\runonce.cmd SET CDROM2=K:ECHO Please be patient while files are copied to your hard drive.start "" /wait xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /YECHO.ECHO.::ECHO Deleting Temp Installation Files...::RD /S /Q %systemdrive%\install::RD /S /Q %systemdrive%\Drivers::ECHO.EXIT
SiMoNsAyS Posted August 19, 2004 Posted August 19, 2004 lol, what a coincidence!! i dunno anyone with the same idea and i've just write a post with similar contents here
Alanoll Posted August 19, 2004 Posted August 19, 2004 you could right in your VBScript file that ejects the CDMsgBox "Please Eject CD. When finished Press OK.",vbOKOnly,"Eject CD!"(i'm not sure of the entire syntax, but that's the general IDEA.)I'll be writing up some sample code if no one gets to it before me.
gai-jin Posted August 19, 2004 Author Posted August 19, 2004 as of right now, I'm using cdr.exe to eject the cd, not vbs. I can certainly change back to the vbs script though if it'll do this...
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