Solved

Startup script to run exe files after user has logged in..?

Posted on 2009-07-01
2
286 Views
Last Modified: 2013-11-10
Hello All,  I am wondering if there is any way to make a VBS logon script run several exe files once the user has completely logged in.. I tried to include the exe files in the script, but they did not work, I suspect because they need to run while the user is logged in.  Is there any way to do this?
0
Comment
Question by:OSXaddict
  • 2
2 Comments
 
LVL 3

Expert Comment

by:astroviper
Comment Utility

Name = "C:\Windows\notepad.exe"

Set objShell = CreateObject("WScript.Shell")

Return = objShell.Run(Name, 1, true)

Open in new window

0
 
LVL 3

Accepted Solution

by:
astroviper earned 500 total points
Comment Utility
In case you need it to wait first you could do this. Note time for WScript.Sleep is in milliseconds.

WScript.Sleep 5000
 

Name = "C:\Windows\notepad.exe"

Set objShell = CreateObject("WScript.Shell")

Return = objShell.Run(Name, 1, true)

Open in new window

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now