Solved

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

Posted on 2009-07-01
2
289 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

785 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