Computing.Net > Forums > Windows XP > restart with batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

restart with batch file

Reply to Message Icon

Name: Charles
Date: February 23, 2003 at 19:55:17 Pacific
OS: Windows XP Pro
CPU/Ram: Athlon XP 1900/768
Comment:

i want to run a batch file from an autorun file on a cd that will restart my computer.
Any thoughts?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Temperal72
Date: February 23, 2003 at 21:05:32 Pacific
Reply:

Yeah, I did this as well.
You have to create a winnt.sif file and "answer" file.
you should place this on a floppy disk during rebuild. Once you have it correct you can place it in the I386 folder on the winxp CD. This way you won't have to burn the windows CD again and again. I learned the hard way. Took me eight burns to tweak the file, and eight seperate windows burns.

This is straight from my memory,, and might be a little wrong,, but there should be a setup manager,, I think it is called setupmng in the deploy cab file on the windows Cd that should create a base winnt.sif file. This file can be edited with a text editor.
The ony problem I had was getting the install to choose the C drive. I had to change the AutoPartition back to 0, I could never figure that out. Here is the one that I used,, the XX will have to be your own information,,, Mine is also set up with a run once command.. You will probably have to take that out, as well as the optional computer names, and favorites


;SetupMgrTag
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=No
TargetPath=\WINDOWS

[GuiUnattended]
AdminPassword=xxxxxxxxxxxxxxxxxxxxxxxxxx
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=xxxxxxxxxxxxxx
OemSkipWelcome=1

[UserData]
ProductID=xxxxxxxxxxxxxxxxxxxxxxxx
FullName=xxxxxxxxxxxxxxxxxxxxxx
OrgName=""
ComputerName=*

[TapiLocation]
CountryCode=1
Dialing=Tone
AreaCode=xxxxxxxxxx

[RegionalSettings]
LanguageGroup=1
Language=00000409

[SetupMgr]
ComputerName0=xxxxxxxxxx
ComputerName1=xxxxxxxxxxxx
ComputerName2=xxxxxxxxxxxxxx
ComputerName3=xxxxxxxxxxxxx
ComputerName4=xxxxxxxxxxxxxxx
ComputerName5=xxxxxxxx

[Identification]
JoinWorkgroup=xxxxxxxxxxxxxxxxx

[Networking]
InstallDefaultComponents=Yes

[Branding]
BrandIEUsingUnattended=Yes

[URL]
Home_Page=xxxxxxxxxxxxxxxxxxxxxx
Search_Page=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=0

[FavoritesEx]
Title1="xxxxxx.url"
URL1="http://xxxxxxxxxxx.com/"
Title2="xxxxxxxxxx.url"
URL2="http://xxxxxxxxxxxxxx.com/"

[GuiRunOnce]
Command0="F:\WIN_ADD\WINSP1\UPDATE\UPDATE.exe"
Command1="F:\WIN_ADD\POWER\POWERTOYSETUP.exe"



0
Reply to Message Icon

Related Posts

See More


XP running Slow divx problems!!!



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: restart with batch file

Change prompt with batch file www.computing.net/answers/windows-xp/change-prompt-with-batch-file/147732.html

amending ini with batch file www.computing.net/answers/windows-xp/amending-ini-with-batch-file/165397.html

Help with BATCH FILE www.computing.net/answers/windows-xp/help-with-batch-file/129579.html