RYU81 Posted November 8, 2004 Share Posted November 8, 2004 I can Unattended boot.ini to make time zero???like this: Link to comment Share on other sites More sharing options...
jrzycrim Posted November 8, 2004 Share Posted November 8, 2004 bootcfg /Timeout 0Add that command to one your batch files. Link to comment Share on other sites More sharing options...
RYU81 Posted November 8, 2004 Author Share Posted November 8, 2004 bootcfg /Timeout 0Add that command to one your batch files.Thanks Link to comment Share on other sites More sharing options...
jbarnes007 Posted November 12, 2004 Share Posted November 12, 2004 This batch file worked perfectly for me...I have it set to 5 secs, you can set it to whatever...copy this to a bat file:SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSIONTITLE Modifiy Boot DelaySET ProgPath=C:SET ORIG=%ProgPath%\Boot.iniSET NEW=%ProgPath%\Boot_New.iniATTRIB -R -S -H %ORIG%IF EXIST "%NEW%" ( ATTRIB -R -S -H %NEW% DEL /Q "%NEW%")FOR /F "delims=*" %%L IN (%ORIG%) DO ( SET Begin=%%L IF "!Begin:~0,8!" == "timeout=" ( ECHO.timeout=5 >>"%NEW%" ) ELSE ( ECHO.%%L >>"%NEW%" ))COPY /Y %ORIG% %ORIG%_OLDCOPY /Y %NEW% %ORIG% Link to comment Share on other sites More sharing options...
Yzöwl Posted November 12, 2004 Share Posted November 12, 2004 Just a couple of suggestions with the above:You don't need to SET ProgPath=C:%SystemDrive% will already do this and will not be hardcoded to a specific drive letterSince you have removed the attributes from the Boot.ini, it would be good to finish off the code by at least re-applying the hidden attributes to %ORIG% and preferably %ORIG%_OLD (+H) to the end of it. 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