ETO - I believe I have found a fix for all the batch files
I am at work and while haven't tested I already believe this is the solution.
When you run a batch file as administrator under windows vista and above the current directory gets set to C:\windows\system32. This can prevent your scripts from working correctly if you use relative paths.
Note - if UAC is on.
To fix this problem, include these two lines at the top of your .bat script for each BAT file.
This works for me. Nice find P38man! I was always having to run a regedit file I made to turn UAC on and off. Great to be able to switch eras easily now. Thanks!
=========posted in other thread but putting here as well ===================
There is actually more complexity here which is why there is such a variance in behaviour.
Additionally:
- depends upon running as admin
- depends on your notify UAC setting upon changes.
- depends upon your current windows explorer directory
Tom
__________________________________________________ ___________________________________________ Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7
Bookmarks