New
#1
Have a .bat file start up as "run as administrator" in start up.
Hi,
Let me start with my setup. In File explorer I have a library called "Start up" . This contains 2 paths:
Path 1
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
and Path 2
C:\Users\AJ ANNING\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
I know the library is setup correct, I've used it for a long time with other .bat files.
(Note: all screen shots are .jpg files attached and/or at
www.aanning.com - /ajissues/Windows_errors/bat_file_startup/
ss1.jpg is the shortcut in the library; ss2.jpg is the literaly .bat file
)
currently Path 1 is empty Path 2 contains a .bat shortcut called AOLSTART.BAT
Which points to ""E:\Google Drive\APPS\BatchJobs\AOLSTART.BAT""
As seen in ss1.jpg, this short cut is set to "run as administrator"
The file AOLSTART.BAT is at E:\Google Drive\APPS\BatchJobs\ containing the below:
cd /
cd "C:\Users\AJ ANNING\AppData\Local\AOLDesktop"
start Update.exe --processStart AolDesktop.exe
timeout 2
start outlook
The issue is when I reboot, nothing happens, the shortcut AOLSTART.BAT does not work.
If I use file explorer and navigate to my startup library and double click AOLSTART.BAT it works fine.
(Initnally I had to right click, run as adminstrator, else it did nothing, so in
the properties I set it to run as admin...as seen in ss1.jpg).
I have tried to go directly to AOLSTART.BAT in E:\Google Drive\APPS\BatchJobs\ to set it up
to run as administrator...this is not an option here? (see ss2.jpg)
I'm guessing during reboot is may need the shortcut AND the .bar file as "run as administrator"
even though insticnt tells me, if the shortcut is set up to default run as administrator
that should cover it ? This may not be the issue, all I want is AOLSTART.BAT to run, please advise.
thanks AJ