Solved

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

Posted on 2009-07-01
2
287 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
ID: 24760354

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
ID: 24760366
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

911 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

22 Experts available now in Live!

Get 1:1 Help Now