Avatar of doctorbill
doctorbill
Flag 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
Operating SystemsWindows 7Windows OSAcronis

Avatar of undefined
Last Comment
doctorbill

8/22/2022 - Mon
SOLUTION
Joe Winograd

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
doctorbill

ASKER
So what do I do
Can I add it in the User variable section
If so, exactly what do I add
SOLUTION
Qlemo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
doctorbill

ASKER
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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
doctorbill

ASKER
How does one use "Path" in a cmd prompt
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
doctorbill

ASKER
Path=(null)
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
doctorbill

ASKER
If I type in "Set" the Path variable set does not show up !!!!!
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
doctorbill

ASKER
I am very surprised that windows allowed the Path system variables to be exceeded
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
doctorbill

ASKER
Thanks to you all
Qlemo

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 ;-).
Joe Winograd

You're welcome. And thanks to you for letting us know exactly what the problem was — very helpful! Regards, Joe
Your help has saved me hundreds of hours of internet surfing.
fblack61
doctorbill

ASKER
Thanks Joe - just realised that I should have put you as best solution as the probblem was number of characters
Sorry - my mistake
Joe Winograd

Don't worry about it — not a big deal. Regards, Joe
doctorbill

ASKER
Solved
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.