TheTechGuide Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
SMF - Just Installed!
Home
Help
Search
Login
Register
TheTechGuide Forum
»
General Category
»
Software
(Moderators:
Josetann
,
Dexter
,
guestolo
) »
unattend.txt
« previous
next »
Print
Pages: [
1
]
Author
Topic: unattend.txt (Read 1173 times)
Michael
Guest
unattend.txt
«
on:
March 02, 2003, 02:29:58 PM »
Hello,
I would like to do this :
If exist a:unattend.txt Then
use the file on the floppy
else (if not extist a:unattend.txt)
use the file on the CD-Rom
End if
So How Can I do that
Thanks
Logged
Space Between
Guest
unattend.txt
«
Reply #1 on:
March 05, 2003, 07:22:29 PM »
Im taking it your going to do it the faster way through DOS right?? It\'s faster so you should anyways. (make sure smartdrv is loaded too in your autoexec.bat
At the end of your autoexec.bat add a line like this...make sure that this line will run though...right before using it. (you will need the correct switch\'s with winnt) or whatever. Also you might want to load the unattend.txt onto a ram drive and make sure it is the right one first aswell
--below is if you dont want to edit
if exist a:unattend.txt goto _runadrv
your switch\'s here for cdrom
goto _eof
:_runadrv
your switch\'s here for a: drv.
:_eof
exit
---below is if you want to edit...make sure you have edit.com in your boot image. Make sure you have edit.com and attrib.exe in/on your boot image.
copy edit.com %ramdrive%:
copy attrib.exe %ramdrive%:
if exist a:unattend.txt goto _runadrv
copy %cdrom%:unattend.txt %ramdrive%: (or whatever your ramdrive is if not q:)
attrib -r -s -h %ramdrive%:unattend.txt
%LocationOfEdit%:edit.com %ramdrive%:unattend.txt
your switch\'s here for running WINNT.EXE in i386 directory on cd/disk
goto _eof
:_runadrv
copy a:unattend.txt %ramdrive%: (or whatever your ramdrive is if not q:)
attrib -r -s -h %ramdrive%:unattend.txt
%LocationOfEdit%:edit.com %ramdrive%:unattend.txt
your switch\'s here for running WINNT.EXE in i386 directory on cd/disk
:_eof
exit
%LocationOfEdit% = drive letter wherever edit.com is
%ramdrive = whatever your ram drive letter is
you will have to know the correct syntax for winnt.exe that is in your i386 directory in the setup image on disc or disk or whatever.
Logged
ali6
stranger
Newbie
Posts: 8
Karma: +0/-0
unattend.txt
«
Reply #2 on:
March 06, 2003, 02:05:21 AM »
Win 2k & XP BootCD do that by default. It searches a: for unattended file 1st, if its not there, then it checks for it in the i386 folder.
Logged
Space Between
Guest
unattend.txt
«
Reply #3 on:
March 12, 2003, 10:45:35 PM »
I guess the ? really is are you setting up through dos??? it\'s faster. Booting from a msdos disk then copying files to the drive to setup is way faster.
I dont think the bootcd will search a: or %cdrom% since you have to actually specify the location of the unattend.txt..if your installing off a cd then yeh that works. Keep in mind if you do that aslo the .txt file you are using to setup will be fixed one that you will not be able to edit to the systems needs
Logged
Print
Pages: [
1
]
« previous
next »
TheTechGuide Forum
»
General Category
»
Software
(Moderators:
Josetann
,
Dexter
,
guestolo
) »
unattend.txt