Need VB code to add startup entry 02-23-2014, 08:21 AM
#1
Hello [username],
I dont know vbscript. I have a vbscript with me which runs my batch program hidden. I want this vbscript to add itself to the windows startup so that it will run each time windows starts. I added it to startup manually by copying the vbscript to startup folder (in windows xp). But I want this to be done automatically once the script is executed. It would be great if it worked for both windows xp and windows 7.
This is the script I already have to run my program hidden(without gui):
Help me please...
Thanks...
I dont know vbscript. I have a vbscript with me which runs my batch program hidden. I want this vbscript to add itself to the windows startup so that it will run each time windows starts. I added it to startup manually by copying the vbscript to startup folder (in windows xp). But I want this to be done automatically once the script is executed. It would be great if it worked for both windows xp and windows 7.
This is the script I already have to run my program hidden(without gui):
Code:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\start.bat" & Chr(34), 0
Set WinScriptHost = Nothing
Help me please...
Thanks...
Best E-Books (PDF) on Hacking for beginners... ALL for FREE DIRECT DOWNLOAD from MediaFire
DOWNLOAD
DOWNLOAD