Change the System Path from CMD
The batch file provided below will change the system path from the command line. Pass the batch script a directory and it will add it to the system path. If the directory is already in the path it will remove it.
System Requirements
The script runs on any MS Windows OS that has uses the registry to store the system path. Windows NT, 2000, XP, and Vista all store the system path in the registry. For windows Vista the script will need to be run as an Administrator.For information on how to run a batch file as an Administrator in Vista check out: http://www.vistaclues.com/run-a-batch-file-as-an-administrator/
Why?
Having important executables in the path can make command line work easier. Some applications that have been ported from the Linux environment are easier to work with if the system paths are setup correctly. Developers and administrators may find this script helpful.Limitations
After updating the path the system does not refresh the current path variable to reflect the change. The system must be manually refreshed.References
- For those using Windows 95 or those who wish to check out a similar program can check out Modify Path: http://legroom.net/software/modpath
No comments:
Post a Comment