Logon VBScript to Launch EXE

N/a / N/A
June 4, 2009 at 05:29:32
Specs: Windows XP, n/a
I have a 2003 Active Directory network that uses logon VBScripts to do basic drive and printer mappings at the time a user logs on to their workstation.

I would like to modify the script to launch a program that's located on a public network share. The program needs to be launched along with parameters.

Example: s:\apps\launchme.exe /sw1 /sw2

Can someone show me how to call the above app, with switches, as part of a logon VBScript?

See More: Logon VBScript to Launch EXE

Report •

June 4, 2009 at 12:41:47
CreateObject("WScript.Shell").Run "s:\apps\launchme.exe /sw1 /sw2"

You might need to add some logic to wait for the S: drive to be mapped.

Report •
Related Solutions

Ask Question