Jump to content

Recommended Posts

Posted

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?

THanks

Gai-jin

CLS
@ECHO OFF
ECHO.
ECHO Ejecting CD-ROM Drives...
ECHO If you are using a cd rom please remove it from
ECHO the cdrom drive and If you have a second cd place
ECHO it in the drive at this time please.
ECHO.
ECHO.
ECHO Wait till the cdrom/dvd drive quits blinking
ECHO and then press any key to continue.
start %systemdrive%\install\Tools\cdr open
ECHO.
PAUSE

IF EXIST %systemdrive%\install\runonce.cmd GOTO RUNBATCH
SET 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 /Y
ECHO.

ECHO.
::ECHO Deleting Temp Installation Files...
::RD /S /Q %systemdrive%\install
::RD /S /Q %systemdrive%\Drivers
::ECHO.
EXIT


Posted

you could right in your VBScript file that ejects the CD

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

Posted

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

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