trying to run from a service a .bat file as administrator so it shows on desktop

Hi. I have a .bat file that works fine if I click it, but when I try to run it from a program I found (QueIt) which is installed on another lan machine as a service, the .bat runs but it is invisible. It does show up in task manager under processes. How can I make this run and appear on the desktop? I need to shut down access, then copy a file from our server, then restart access so when the pc user gets to the office in the morning, it is open and waiting for them. Thanks.

we have w2k

here is the .bat:

Kill.exe -f msaccess.exe
copy \\OURSERVER\ourserversfolder\ouraccessdb.mdb c:\thismachinesfolder\ouraccessdb.mdb
start msaccess.exe C:\thismachinesfolder\ouraccessdb.mdb
horstuffAsked:
Who is Participating?
 
adamdrayerConnect With a Mentor Commented:
good call on the /y.

the CALL statement, however, is how you would run a batch file from within a batch file, and have the execution return properly.
0
 
adamdrayerCommented:
try calling:
cmd /C whatever.bat
0
 
jonnietexasCommented:
I would use a call statement before the copy.  Also, you will probably need a /y switch in order to force the copy if the file exists.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.