Windows Scripting
  Home arrow Windows Scripting arrow Taking Control of System Properties, Start...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Taking Control of System Properties, Startup, and Shutdown
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2007-02-01

    Table of Contents:
  • Taking Control of System Properties, Startup, and Shutdown
  • 6.14 Disabling Error Reporting
  • 6.15 Creating Environment Variables
  • 6.16 Creating a Reboot or Shutdown Shortcut
  • 6.17 Scheduling a Reboot
  • 6.18 Speeding Up System Startup

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    IBM developerWorks
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Taking Control of System Properties, Startup, and Shutdown


    (Page 1 of 6 )

    In the final part of a four-part article, you'll learn how to change the location of your startup folders, disable error reporting, and more. It is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen and Preston Gralla (O'Reilly; ISBN: 0596007256). Copyright © 2005 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.

    6.13 Changing the Location of Your Startup Folders

    Problem

    You want to change the location of your startup folder to another drive or to another folder.

    Solution

    Using the Registry

    You can turn any folder you want into the folder whose contents will be run on startup. To change the location of the current user’s Startup folder, run the Registry Editor and then:

    You can turn any folder you want into the folder whose contents will be run on startup. To change the location of the current user’s Startup folder, run the Registry Editor and then:

    1. Go toHKEY_CURRENT_USER\Software\Microsoft\ Windows\CurrentVersion\Explorer\ User Shell Folders\Startup.
    2. The string value is%USERPROFILE%\Start Menu\Programs\Startup.%USERPROFILE%\refers to C:\Documents and Settings\User where User is the current user. Edit the string value to any folder on your hard disk. It doesn’t have to be a subfolder of C:\Documents and Settings\User. For example, the location can be C:\ YourStartup.
    3. Exit the Registry and reboot.

    To change the location of the common Startup folder, go toHKEY_LOCAL_MACHINE\ SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Common Startup. The string value will be%ALLUSERSPROFILE%\Start Menu\Programs\Startup. Change it to any folder you want, exit the Registry, and reboot.

    Discussion

    When you start XP, it automatically runs programs located in your system’s Startup folders. There are more than one of these folders—one for each account, and one common one for all users. So when the system starts, it runs all programs in the account’s Startup folder and the common Startup folder. The locations of the folders are:

    1. C:\Documents and Settings\User\Start Menu\Programs\Startup where User is the account of the current user
    2. C:\Documents and Settings\All Users\Start Menu\Programs\Startup

    Shortcuts to any programs you put in either folder will be run at startup. To stop programs from running, remove their shortcuts from the folders.

    You can start XP without it running programs located in your Startup folders. You might want to do this if you’re troubleshooting startup problems and want to see whether programs that automatically run at startup are causing the problems. To bypass the Startup folders, hold down the Shift key while you log on. When the logon dialog box appears, type in your user name and password, then hold down the Shift key and click on OK. Keep the Shift key depressed until the desktop appears.

    More Windows Scripting Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows XP Cookbook," published by...
     

    Buy this book now. This article is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen and Preston Gralla (O'Reilly; ISBN: 0596007256). Check it out today at your favorite bookstore. Buy this book now.

    WINDOWS SCRIPTING ARTICLES

    - Understanding Procedures in VBScript
    - Printing Documents in WSH
    - Generating Outlook Signatures Based on Activ...
    - VBScript: Converting and Formatting with Fun...
    - VBScript: Conversion and Format Functions
    - VBScript: Array Functions
    - VBScript: Strings, You Can`t Function withou...
    - VBScript: More String Functions
    - VBScript: Functioning with Strings
    - Working with the Windows Registry in C++
    - Understanding Objects
    - HTML Applications: Giving WSH a User Interfa...
    - Modifying Computer Objects with Active Direc...
    - Logon Script to Send Email Notifications
    - Securing Computers and Active Directory




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway