Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Path environment variable
Name: Shun-Luoi Date: February 10, 2003 at 13:50:35 Pacific OS: Windows XP CPU/Ram: PIII 512 MB Ram
Comment:
I downloaded pscp.exe to my computer and tried to set the PATH environment variable so that in the Command Prompt I would only have to type pscp. That way I wouldn't have to always type the full path the pscp.exe.
So i went into my System | Advanced | Environment Variables. In the System variable box I selected Path and clicked Edit. At the end of the list I added C:\pscp.exe
Then after clicking "ok" out of that I restarted my computer. Now in Command Prompt when I type pscp, I get the following error:
'pscp' is not recognized as an internal or external command, operable program or batch file.
How do I set it so that I only have to type in pscp, no matter what directory I am in?
Name: Doug Date: February 10, 2003 at 16:41:42 Pacific
Reply:
Try setting the path in autoexec.nt.
0
Response Number 2
Name: Hank Schafer Date: February 10, 2003 at 19:13:49 Pacific
Reply:
The problem is that you added the executable's name to a PATH statement - what you need to do is go back and re-do that so that it's only including the PATH to the exe, i.e., if you put it in C:\downloads - THAT is what you list, not the name of the executable itself... if you put it in the root, which is NOT advisable, all you need to do is make sure that C:\ is already on the PATH statement - it should be...
Summary: I'm writing some scripts to setup a quick and dirty installation and I want to be able to search the PATH environment variable to see if it contains a certain directory that needs to be on the path. B...
Summary: I could not change my environment variable on the System Properties --> Advanced --> Environment Variables. It's because one varaible is corrupted. I could show you it is C:\Program Files\Common File...
Summary: It depends on WHERE you checked the path. It is very likely that you have it set, but not in the right place. They should be set from System Properties / Advanced / Environment Variables. It may also...