?
Solved

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

Posted on 2004-09-06
3
Medium Priority
?
221 Views
Last Modified: 2010-03-18
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
0
Comment
Question by:horstuff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:adamdrayer
ID: 11993002
try calling:
cmd /C whatever.bat
0
 
LVL 4

Expert Comment

by:jonnietexas
ID: 11993393
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
 
LVL 15

Accepted Solution

by:
adamdrayer earned 500 total points
ID: 11993492
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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
An article on effective troubleshooting
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question