Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

windows variables

Problem:
Windows 7 Ultimate 64 bit

All of a sudden , in order to run batch command such as taskkill, I need to do the following:
c:\windows\system32\taskkill

Before I just need to use the line taskkill and not define the full path to the exe file

I assume this is a system variables issue but I cannot see where the problem is
I have tried adding the "c:\windows" and "c:\windows\system32" to my path varuiables under Path but I am unable to append any new text to the Path which is vvery strange in itself
%SystemRoot% and %SystemRoot%\system32 are in the Path text already

Help appreciated please
SOLUTION
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of doctorbill

ASKER

So what do I do
Can I add it in the User variable section
If so, exactly what do I add
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If I open a cmd and type set sys I get the following:
SystemDrive=c:
SystemRoot=c:\Windows

If I Type Path I get:
PATH=(null)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How does one use "Path" in a cmd prompt
Path=(null)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If I type in "Set" the Path variable set does not show up !!!!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am very surprised that windows allowed the Path system variables to be exceeded
Thanks to you all
Most of the installed programs will not need any PATH entry, but append themselves to it. I regularily remove stuff from PATH for that reason. To make it more simple, I'm defining additional vars like
_PATH_System, _PATH_DB, _PATH_Tools, with corresponding entries, and then put them together as
   PATH=%_PATH_System%;%PATH_DB%;
Besides having a short entry in the system applet, you always can see new paths - they are appended at the end or beginning in plain ;-).
You're welcome. And thanks to you for letting us know exactly what the problem was — very helpful! Regards, Joe
Thanks Joe - just realised that I should have put you as best solution as the probblem was number of characters
Sorry - my mistake
Don't worry about it — not a big deal. Regards, Joe
Solved