Solved

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

Posted on 2009-07-01
2
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 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