I run the following script, %windir%\system32\mysync.bat, in my startup menu.
What I want to do is resync the clock everytime I start up my desktop computer. REM mysync.bat
REM synchronizes the clock
%windir%\system32\sc.exe start w32time
It doesn't work. Why?
If I make a shortcut to mysync.bat and click on it
it works if I run it as administrator, but not otherwise.
How can I make the above script run with administrative privileges?