| Change the Default Directory in Command Prompt by kp | ||
To change the default directory in the Command Prompt, you can either do a change directory command or permanently modify the directory using Registry Keys. The Command Prompt directory normally shows the user's documents and settings path as the default. This can be changed manually by using the 'cd' command along with the new directory path name. For example, to change the directory to the WINDOWS folder, type: cd C:\WINDOWS\system32\ This allows you to run programs found within this directory. To permanently change the default directory, the Registry Keys needs to be modified for the Command Prompt application. To open Registry Keys, go to Start -> Run and type: regedit.exe. In the Registry Editor, locate Command Prompt under HKEY_CURRENT_USER -> Software -> Microsoft -> Command Processor. Look for a key named "Autorun." If the key doesn't exist, create one by right-clicking and choosing New -> Expandable Sting Value. Rename the key to Autorun. Right-click on Autorun to edit the string. Under Value data, enter the following: CD /d C:\WINDOWS\system32\ The path name to your directory may vary depending on your custom settings. Re-boot Command Prompt and the new default directory should be shown in the window. | ||
Difficulty: Moderately Easy
Instructions
- 1Click on the "Start" button and then the "Run" icon.
- 2Type "regedit" without the quotation marks in the "Run" text field and click "OK." Your register editor program will now display.
- 3Navigate to the following registry file: "My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify." You can find that key by first clicking on "My Computer," then "HKEY_LOCAL_MACHINE," then the "Software" folder, followed by the "Microsoft" folder, which brings you to the "Windows NT" folder, then the "Current Version" folder, followed by "WinLogon" and finally the "Notify" folder.
- 4Find the "WgaLogon" folder inside the "Notify" folder and right-click on it. Choose the "Delete" option and left-click on it. You have now removed the program files from the registry.
- 5Restart your computer for the changes to take effect. The program should now be removed from your registry