tlawlessrr Posted July 7, 2004 Posted July 7, 2004 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.txticon=setup.exe,0I need to get rid of th J reference
Vel Straty Posted July 11, 2004 Posted July 11, 2004 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.
sleepnmojo Posted July 12, 2004 Posted July 12, 2004 [AutoRun]open=i386\winnt32 /unattend:unattend.txticon=setup.exe,0Not sure if that will work, but it probably should.
Alanoll Posted July 12, 2004 Posted July 12, 2004 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.cmdicon=setup.exe,0setup.cmd%CD%\I386\winnt32.exe /unattend:%CD%\I386\Unattend.txtI'm not sure that the current directory (%CD%) is the CDROM drive, if it isn't.....just useIF 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
sleepnmojo Posted July 12, 2004 Posted July 12, 2004 setup.cmd%CD%\I386\winnt32.exe /unattend:%CD%\I386\Unattend.txtSET CD=%~d0That 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.
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