Results 1 to 4 of 4

Thread: Run a program in the background

  1. #1
    Join Date
    Dec 2008
    Posts
    150

    Run a program in the background

    How can we make the program (a batch file for example) in the background or is not available on Windows? and is it going to be a process or service? the question we pose another question: how to make this service (bootable) automatically when Windows starts?

  2. #2
    Join Date
    Feb 2008
    Posts
    194

    Re: Run a program in the background

    1) Create a vbs script like this:

    Code:
    Dim oWsh, commands 
    Set oWsh = WScript.CreateObject ( "WScript.Shell") 
    command = "c:\file.bat" 
    oWsh.Run command, 0
    you write this in a .vbs file and start trying to see what it gives.

    The principle is that vb script allows you to execute an order without using the display option 0 (at the very end of the script).

    2) you can use the startup script or logon scripts to start your script at startup.

  3. #3
    Join Date
    Dec 2008
    Posts
    150

    Re: Run a program in the background

    Thank you very much,

    1) it is nice, but what is the concept of "background" in windows, and if so what are the commands that allow us to manage the process?

    2) What are these startup scripts or logon, and is what put an executable file in C:\WINDOWS\system32\ for example implies that it will be run at startup next

  4. #4
    Join Date
    Feb 2008
    Posts
    194

    Re: Run a program in the background

    1) Well what do you mean by "background"? For me in the background it means that it run but nothing appears. This is not a special mode of operation, it's just a history display.

    the script given in the link allows you to launch a .bat or any other command windows without this appears to execution.

    2) scripts logon/boot can be configured for 2 place: either the group strategies if you are on an Active Directory domain with many items to manage, either on a particular local strategies. To start the editor of strategies, should be Start/Run/gpedit.msc

    Against by putting your file in the system32 directory does not say that it will be executed at startup, this is not a good idea to save files in the personal directory windows anyway.

Similar Threads

  1. Replies: 3
    Last Post: 28-01-2011, 12:57 PM
  2. Replies: 3
    Last Post: 23-01-2011, 01:00 PM
  3. Windows DEP program continuously closes the MSN mail program
    By Charioteer in forum Windows Software
    Replies: 4
    Last Post: 19-10-2010, 11:52 AM
  4. Free program to copy background on Windows 7
    By Mind It in forum Windows Software
    Replies: 3
    Last Post: 07-12-2009, 10:36 AM
  5. Graphics program for animated banner in background
    By JiJi in forum Customize Desktop
    Replies: 3
    Last Post: 09-02-2009, 09:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •