Solved

schedlue task

Posted on 2004-03-20
2
296 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now