lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Windows Operating Systems


Register


Reply
 
Thread Tools
  #1  
Old 8th Jan 2009, 17:00
New Member Group
 
Hi all, allow me to explain my problem:

Where I work, the server runs a backup program every night at 11PM. If one of the computers in the office still has our company software running, the backup will skip that folder and all of its contents. Out of the thousands of files we backup regularly, the only ones that really matter are the ones from our company software directory.

I read up a bit on the taskkill command, and how you can make a batch file to kill any running program. The problem I am having is that the program is opened form the server computer itself, so its not a local file.

I started up the program on my office computer (not the server) and under task manager it is called ntvdm.exe, and on the taskbar it is listed as accmenu1.exe. I have written 2 batch files and they are as follows:
taskkill /F /IM accmenu1.exe
taskkill /F /IM ntvdm.exe

What happens when I click either is that a command window comes up and just spams the location of the batch file over and over (ie: c:/.../desktop>taskkill /F /IM accmenu1.exe) until I close the window. In both cases the program never closes.

What Im trying to do is write a batch file so that I can add it to a schedule and attempt to close the company software 1 hour before the backup is scheduled to run.

I assume my main problem is that the program Im trying to close is being remotely ran from the server, and I am at a loss at this point. Do I need to have the batch file in a particular directory or should it matter?

Any help or advice would be GREATLY appreciated, in the last month there have been at least 10 days that the backup did not finish completely due to this software being open on as little as ONE office computer. The office computers are all runnning XP and the server is running Windows 2000.
  #2  
Old 8th Jan 2009, 19:45
New Member Group
 
Silly me. rewrote the batch a little and it works like magic :)

Went with taskkill.exe /F /IM ntvdm.exe, now if I can only figure out how to run a scheduled program under a user with no password :( Anyone?
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.