Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie - Save Code as new .vbs file in startup folder

Status
Not open for further replies.

mukker

IS-IT--Management
Jan 25, 2005
23
GB
Hi peeps,
I have this code the moment.

Set objShell = CreateObject("Wscript.Shell")

intMessage = Msgbox("Would you like to access this site?", _
vbYesNo, "Access Denied")

If intMessage = vbYes Then
objShell.Run("Else
Wscript.Quit
End If


I want a user to click/double click a .vbs file which will save this code
to their startup folder as a new .vbs file.

Clear as mud?? :)


TIA
 
Take a look at FileSystemObject and at WScript.SpecialFolders("AllUsersStartup")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top