| 1. |
Solve : Set Path from cmd line? |
|
Answer» Hello , You can add a folder to the %PATH% environment variable like this Thank you Salmon, that was great, now i can set path to any folder from the cmdline.Too bad its not permanent.Quote from: Floppyman on October 20, 2012, 12:43:04 PM Too bad its not permanent. In XP you can do that like this Right-click My Computer, and then click PROPERTIES. Click the ADVANCED tab. Click Environment variables. Click the Path variable Click Edit to change its value, adding your folder to the start or end, using a semicolon as separator as I showed above. Then keep clicking OK buttons to go right back out For Win 7 and Vista?, and when using the resource kit in XP there is a command called SETX which will set a variable in the master environment from the command LINE, too.Thank you Salmon, but i know the second way i.e., from My Computer and then properties, i just wanted to know from the command line . Any ways this site is great, great place to share knowledge. Thanks once again.Quote from: Floppyman on October 21, 2012, 12:23:58 PM i just wanted to know from the command line As foxi said, setx.exe is the command line tool Windows XP Service Pack 2 Support Tools http://www.microsoft.com/en-us/download/details.aspx?id=18546 |
|