Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Run a program in the background

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-04-2009
Member
 
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?

Reply With Quote
  #2  
Old 08-04-2009
Member
 
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.
Reply With Quote
  #3  
Old 08-04-2009
Member
 
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
Reply With Quote
  #4  
Old 08-04-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Run a program in the background"
Thread Thread Starter Forum Replies Last Post
“This program is using by another program” error message in windows 7 SchuRacer Operating Systems 3 28-01-2011 12:57 PM
Windows 7: when I open a program/window, it opens in the background instead of the foreground $OLIVER$ Operating Systems 3 23-01-2011 01:00 PM
Windows DEP program continuously closes the MSN mail program Charioteer Windows Software 4 19-10-2010 11:52 AM
Free program to copy background on Windows 7 Mind It Windows Software 3 07-12-2009 10:36 AM
Graphics program for animated banner in background JiJi Customize Desktop 3 09-02-2009 09:08 PM


All times are GMT +5.5. The time now is 07:10 PM.