Solved

schedlue task

Posted on 2004-03-20
2
300 Views
Last Modified: 2010-04-13
i want to close have a scheuled task close an application at a certain time, how can i do that.

the application is named ftp voyager
0
Comment
Question by:finnstone
[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 Comments
 
LVL 57

Expert Comment

by:Pete Long
ID: 10641488
MMmm if there are no specific commands to start and stop this, Id register the program as a service, the you can schedule a net stop servicename and a net start servicename

How to run a program as a Service


The Windows NT Resource Kit provides two utilities that allow you to create a Windows NT user-defined service for Windows NT applications and some 16-bit applications (but not for batch files).

Instrsrv.exe installs and removes system services from Windows NT and Srvany.exe allows any Windows NT application to run as a service.


HOWTO: Create a User-Defined Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;137890

**********

To remotely create and start a service from the command line, you can use the SC tool (Sc.exe) included in the Resource Kit.

Although you can use the Netsvc.exe and Instsrv.exe tools to start a service on a remote computer, these tools do not give you the ability to remotely create a service.


How to Create a Windows Service Using Sc.exe
http://support.microsoft.com/?kbid=251192

**********Third Party Solutions**********

Service Mill from http://www.activeplus.com/default.asp?Jump=ServiceMill
FireDaemon from http://www.firedaemon.com/

**********
0
 
LVL 2

Accepted Solution

by:
noamkrief earned 500 total points
ID: 10643235
here are some tips. I get the feeling you do not want to stop a service. You said "application".
to stop an application you will need to "kill" it. Go to http://www.ppedv.de/dwnld/kill.zip
put kill.exe in your windows directory.

You know how to create a batch file right?
open notepad and type in something like
kill msimn.exe

then save the file as something like test.bat

msimn.exe is for outlook express. How did i know that? open up your application, and open up "windows task manager" Go to the applications tab, right click on the application you want to kill, and click on go to process. This will atomatically go to the process name. That process name needs to go in the batch file as i showed above.

If you do not like windows task scheduler to schedule the execution of the batch file we created, use a small free program called "nncron lite".

Good luck - i hope this helped
Noam
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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