Is there anyway to add a programs shortcut to the Vista startup folder via a batch file or script, so that it will run on boot up?
I have tried the following line in a batch file but I get access denied:
copy program.lnk c:\ProgramData\Microsoft\Windows\Startm~1\Programs\Startup
If I try this in XP, but to the appropriate path & not the one above, it works OK.
I have tried running the batch file as an administrator & tried the Elevate command, but nothing is helping.
Any ideas?
Many thanks in advance.
I have tried the following line in a batch file but I get access denied:
copy program.lnk c:\ProgramData\Microsoft\Windows\Startm~1\Programs\Startup
If I try this in XP, but to the appropriate path & not the one above, it works OK.
I have tried running the batch file as an administrator & tried the Elevate command, but nothing is helping.
Any ideas?
Many thanks in advance.