Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Modify Boot INI

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,33091
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Modify Boot INI
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Modify Boot INI - 4/4/2006 1:29:52 PM   
  SteveWilliams

 

Posts: 1
Score: 0
Joined: 4/4/2006
Status: offline
This is a script I wrote for extra credit in a scripting class I was taking.  it's not all that groundbreaking, and I am sure there are probably other ways to accomplish what it does, but I did comment it extensively to explain what is happening and why, so it may be a good script for someone who is learning how to script or for someone who is teaching scripting to use with their students.  Functionally, it will modify the boot.ini file to reduce the timeout value by one second each time it's run.  Because it was written to modify a "fake" boot.ini file, the path to the file is stored in a variable.  In reality, this would, of course, almost always be c:\.  It also goes through the process of removing the read only attribute from the boot.ini, creating a backup, and restoring the read-only flag when it's done.


      
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Modify Boot INI Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts