Jump to content

CMD program run background


Recommended Posts


VBS script is what you want.

Example 1 no spaces in path

Dim Act :Set Act = CreateObject("Wscript.Shell")
Act.Run("C\FolderOne\YourExe"),0,True

Example 2 spaces in path

Dim Act :Set Act = CreateObject("Wscript.Shell")
Act.Run(Chr(34) & "C\Folder One\Your Exe" & Chr(34)),0,True

Link to comment
Share on other sites

Thanks for the reply.

I may explain my need.I want an app to run in startup.But i wish it to run after 4 minutes of startup.So i thought of writing a batch file which has a pause of 4 minutes and then calls the app.then i will put this in the startup.But if i do this as explained,a command window will pop up at startup and will wait till the execution completes.But i want to do this silently without the user being known of it.Is there any way to do this.I dont want to do this using scheduled task.Also i will like to know how this is done in windows as it is done in linux.

Thanks in advance..

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...