running a bat file in the background

D

deejay

Hi all
I enjoy the contribution of this group very much. I am
relatively new bat file scripting. here it goes
I have the bat file scheduled to run everytime a windows xp
machine turns on, the problem is the script runs fine,. the only
problem is a dos window pops up and shows the results. if i shut the
window the scripts stop running, which i do not want. ideally what i
want is to get the bat file working without a window.

So far I have tried help/?, I used some of the commands that might
help but no luck here.
I have also tried logging in using different accounts and on 2 seperate machines.
no luck here either.
any help here would be appreciated.
deejay
 
R

Ramesh, MS-MVP

Hi Deejay,

Use a VBS to call the BAT file.

Example:
http://groups.google.co.in/groups?hl=en&lr=&[email protected]

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Hi all
I enjoy the contribution of this group very much. I am
relatively new bat file scripting. here it goes
I have the bat file scheduled to run everytime a windows xp
machine turns on, the problem is the script runs fine,. the only
problem is a dos window pops up and shows the results. if i shut the
window the scripts stop running, which i do not want. ideally what i
want is to get the bat file working without a window.

So far I have tried help/?, I used some of the commands that might
help but no luck here.
I have also tried logging in using different accounts and on 2 seperate machines.
no luck here either.
any help here would be appreciated.
deejay
 
P

Pegasus \(MVP\)

deejay said:
Hi all
I enjoy the contribution of this group very much. I am
relatively new bat file scripting. here it goes
I have the bat file scheduled to run everytime a windows xp
machine turns on, the problem is the script runs fine,. the only
problem is a dos window pops up and shows the results. if i shut the
window the scripts stop running, which i do not want. ideally what i
want is to get the bat file working without a window.

So far I have tried help/?, I used some of the commands that might
help but no luck here.
I have also tried logging in using different accounts and on 2 seperate machines.
no luck here either.
any help here would be appreciated.
deejay

Schedule the batch file to run under an account other than
your foreground account!
 
G

Guest

Hi deejay,
You can also look at performing the following:

There are tools that will run a batch file as a service on WIndows
NT/2000/Xp. You can also rename your batch file to autoexecnt.bat and this
is run automatically when the machine starts up. Read:
http://www.windowsnetworking.com/kb...hfileatWindowsNTstartupwithnooneloggedon.html

Another way to do it, if you are running from an AD structure is to edit the
group policy of your computer accounts (not users) and add the batch file as
the startup script. Then you can select this to run invisable, minimised, or
however you want.
 
J

Jetro

Look at http://support.microsoft.com/?id=176197
How to Hide the Logon Script Dialog Box on a Windows Client

'help start' provides extended explanation of the START command usage and
syntax.

For instance:

B Start application without creating a new window. The
application has ^C handling ignored. Unless the application enables ^C
processing, ^Break is the only way to interrupt the application.
MIN Start window minimized
MAX Start window maximized
 
J

jcharlu2002

Hi all
Many thanks for your contribution. I finally achieved
productive results , when changes were made to the bat file and typing
the proper commands in dos. so now I am able to get the program to run
in the background without the dos window. this has created a new
problem for me, from time to time I need to check whether the program
is up and running. I did some research, the cmd qgrep "prog name" will
display all the instances of the program running ( much like in linux)
, but I need a license for a windows resource kit. Is there a way round
this. Many thanks
DeeJay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top