randalldale Posted December 25, 2008 Posted December 25, 2008 (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 December 25, 2008 by randalldale
PC_LOAD_LETTER Posted December 25, 2008 Posted December 25, 2008 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup in Vista is equivalent to C:\Documents and Settings\All Users\Start Menu\Programs\Startup in 2k/xp
randalldale Posted December 25, 2008 Author Posted December 25, 2008 I will give it a shot thanks.Appears to be hidden or something...
PC_LOAD_LETTER Posted December 25, 2008 Posted December 25, 2008 yeah C:\ProgramData is a hidden folder. you can either type it manually, enable hidden files and folders or type %PROGRAMDATA% into the address bar (with the % signs)
randalldale Posted December 25, 2008 Author Posted December 25, 2008 Sure but how am I going to apply a .wim file or copy the files I need that far down in with out changing the attributes?
randalldale Posted December 25, 2008 Author Posted December 25, 2008 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
PC_LOAD_LETTER Posted December 25, 2008 Posted December 25, 2008 %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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now