Only now I noticed that the bat file, I created, cannot execute the command “set”. When I opened its properties dialog, I found out that the “Run this program as administrator” is greyed, so it cannot be checked. Is it windows 7 or just me?! (I am the only user of the laptop and I used running programs as administrator anytime necessary).
Edit_1: But since I wrote many bat files in which the command “set=” is used to define a few temporary names (then clear them), perhaps the command here is missing the word “path”. I will search about it since I am not sure now how I set windows variables in the far past (I am 70).
Edit_2: I was reading:
So perhaps, setting a path is not possible. And it needs administration privilege which is not an option for *.bat. I will search if someone else, running windows 7, raised this subject.
Edit_3: When I right-click the bat file I am given the option to run it as administrator.
As a test, I created “testV.bat” on which:
I run it while I was watching the windows “Environment Variables”. Nothing happened on the list and on the DOS window no error or warning was displayed!