Jump to content

Recommended Posts

Posted (edited)

Hi Guys,

As before thanks for the help on the previous occasions.

I need to load an HTA file in the All Users\startup is that possible in Vista like in XP?

If so where would I find such a location as the 'All Users' I try to access is no access?

Thanks,

Randall

Edited by randalldale

Posted

Ok, here is what I'm trying... will let you know.

objWShell.Run "cmd /c copy c:\$oem$\runonce.cmd" & chr(34) & "c:\programdata\microsoft\windows\start menu\programs\startup\runonce.cmd",0, True

objWShell.Run "cmd /c copy c:\$oem$\finished.hta" & chr(34) & "c:\programdata\microsoft\windows\start menu\programs\startup\finished.hta",0, True

objWShell.Run "cmd /c xcopy c:\$oem$\images\*.*" & chr(34) & "c:\programdata\microsoft\windows\start menu\programs\startup\images /e /i /y /q",0, True

Posted

%ALLUSERSPROFILE%\Start Menu\Programs\Startup or %PROGRAMDATA%\Start Menu\Programs\Startup will both work but i believe the reason why the code above isnt working is the space between start and menu in the destination part of your copy command.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...