Jump to content

BootableCD > How do I refer to the CD drive?


Recommended Posts

Posted

BootableCD > How do I refer to the CD drive?

In the autofun.inf file or in a batch file.

How do I refer to the CD rom drive if I do not know the exact drive the user will insert the disk into?

For example

[AutoRun]
open=j:\i386\winnt32 /unattend:j:\unattend.txt
icon=setup.exe,0

I need to get rid of th J reference


Posted

tlawlessrr,

Why don't you rename the "unattend.txt" that you've made and rename it to "winnt.sif" and replace it with the one that is in the cd, if you haven't done it already. It should work fine.

Posted

setup should start, I don't know if it will find the unattend.txt file..... and you may want to add .exe at the end....

if that doesn't work.....

you could call a batch file...

[AutoRun]
open=setup.cmd
icon=setup.exe,0

setup.cmd

%CD%\I386\winnt32.exe /unattend:%CD%\I386\Unattend.txt

I'm not sure that the current directory (%CD%) is the CDROM drive, if it isn't.....just use

IF EXIST D:\WIN51 SET CDROM=D:
IF EXIST E:\WIN51 SET CDROM=E:
IF EXIST F:\WIN51 SET CDROM=F:
IF EXIST G:\WIN51 SET CDROM=G:
IF EXIST H:\WIN51 SET CDROM=H:
IF EXIST I:\WIN51 SET CDROM=I:
IF EXIST J:\WIN51 SET CDROM=J:
IF EXIST K:\WIN51 SET CDROM=K:
IF EXIST L:\WIN51 SET CDROM=L:

%CDROM%\I386\winnt32.exe /unattend:%CDROM%\I386\Unattend.txt

Posted
setup.cmd

%CD%\I386\winnt32.exe /unattend:%CD%\I386\Unattend.txt

SET CD=%~d0

That would be a little better in this case. The setup.cmd would have to be on the cd, and this would take out the dependency on the file.

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