S: is a shared drive that contains a batch file s:\myfolder\mylogin.bat
The batch file needs administrative rights because it has commands that copy files to the c:\program files\directory.
It worked under windows XP, but does not work under Windows 7 pro 64 bit.
If I run it as administrator, it fails when trying to access the S: drive.
If I run it as a normal user, it fails when trying to access the protected C: drive folders.
How do I get it to run with all all rights?
I suspected that Run As Administrator is using the Local Administrator user profile, which does not have access to the network drive, so I run cmd as administrator. Sure enough, the dos command line cannot ever do a dir s: