webmedic Posted September 12, 2003 Share Posted September 12, 2003 it does echo but the >> outputs the command to a file that it called sysprep.cmd and is in your windows startup folder. The next time windows boot it will run that file which will start sysprep for you and then the sysprep.cmd will delete itself. yes I ment to delete install but keep drivers. Link to comment Share on other sites More sharing options...
hevnbnd Posted September 12, 2003 Author Share Posted September 12, 2003 Ok i edited your script because you had missspelled documents. Here is the last app that it installs and then your script:ECHO.ECHO Installing VGA DriversECHO Please wait...start /wait %systemdrive%\install\VGA\setup.exe -sECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\InstallECHO.ECHO Installing Sysprep >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"ECHO Please wait... >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"echo start /wait %systemdrive%\oem\sysprep.exe >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"ECHO. >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"ECHO del "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd" >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"ECHO EXIT >> "%systemdrive%\documents and settings\All users\start menu\programs\startup\sysprep.cmd"SHUTDOWN -r -t 60 -c " Rebooting now"EXIT It installs the last app and then just goes on into windows. When i navigate to documents and settings\All users\start menu\programs\startup\ there is not sysprep.cmd Also i restarted the computer manually after it went into windows and still no sysprep.cmd and sysprep never started. Any ideas? B Link to comment Share on other sites More sharing options...
webmedic Posted September 12, 2003 Share Posted September 12, 2003 unfortunatly no at this point I dont. I don't use sysprep for my own systems. I just send them out the door. Just like dell and the others do. Link to comment Share on other sites More sharing options...
hevnbnd Posted September 12, 2003 Author Share Posted September 12, 2003 So what is wrong with the script that it is not creating the sysprep.cmd? I think if we can figure that out i can get sysprep to run Link to comment Share on other sites More sharing options...
webmedic Posted September 12, 2003 Share Posted September 12, 2003 I'm not really sure I may have typed the paths wrong in which case you would need to check to make sure the paths are correct. Link to comment Share on other sites More sharing options...
hevnbnd Posted September 12, 2003 Author Share Posted September 12, 2003 Update:I took the:ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\Installout of the batch file and it went further. When the lines above are included the batch ends after it delets the temp files. Probally because it deletes the batch file that is located in the install folder. Just a guess. If i delete that line and run the batch file i get a message that says:C:\Documents and settings\owner> Installing Sysprep'Installing' is not recognized as an internal or external command, operable program or batch fileC:\Documents and settings\owner> Please Wait'Please' is not recognized as an internal or external command, operable program or batch fileC:\Documents and settings\owner> start /wait c:\oem\sysprep.exeand then it starts sysprep.exeNow if i reseal the computer the batch files start to run again because they are in the install folder that did not get deleted because i deleted that command. Please try to help me if you could. I know you have been but i have to have this done by monday at the latest. I can email you the sysprep files if need be. Link to comment Share on other sites More sharing options...
webmedic Posted September 13, 2003 Share Posted September 13, 2003 I'm sorry I'm out of time today I'll be able to help you on sunday my time or late tomarrow evening. Which should be before your monday. Link to comment Share on other sites More sharing options...
hevnbnd Posted September 13, 2003 Author Share Posted September 13, 2003 Ok i will look for some help then. If i have any luck before then i will post. Thanks Link to comment Share on other sites More sharing options...
hevnbnd Posted September 14, 2003 Author Share Posted September 14, 2003 Ok i about got this to work i think the only problem i am having is getting sysprep.exe to start here is the text in my batch fileCLS@echo offECHO.ECHO Deleting $winnt$DEL %systemdrive%\WINDOWS\system32\$winnt$.infECHO.ECHO Starting Sysprepecho start /wait %systemdrive%\oem\sysprep.exe ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\oemECHO.EXITSysprep.exe does not start unless i go to the oem folder and double click it. How do i make it start? Thanks B Link to comment Share on other sites More sharing options...
Aaron Posted September 14, 2003 Share Posted September 14, 2003 Its because you're using an ECHO command in your sysprep.exe line. ECHO is only used for making a line spacing in the Command Prompt window, or for commenting on what's currently in progress.echo start /wait %systemdrive%\oem\sysprep.exe should bestart /wait %systemdrive%\oem\sysprep.exe Link to comment Share on other sites More sharing options...
hevnbnd Posted September 15, 2003 Author Share Posted September 15, 2003 Got it to work will post how as soon as i get a chance. brian Link to comment Share on other sites More sharing options...
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