PC Review


Reply
Thread Tools Rate Thread

A script/batch to kill a batch file from scheduled tasks?

 
 
Bogdan
Guest
Posts: n/a
 
      31st Jul 2009
I'd like to kill a batch (cmd) file from a scheduled task (i.e. Control
Panel.Scheduled Tasks). Is there a command/utility that can do that?

Thanks,
Bogdan


 
Reply With Quote
 
 
 
 
Tim Meddick
Guest
Posts: n/a
 
      31st Jul 2009
Schedule a new task to run,, and enter (or browse) for a command : "cmd.exe"

Choose a date and time to run the command and click [next]

Then check-mark the box "Open advanced properties for this task when finished"

In the advanced properties for the task - add the following text after the "cmd.exe"
:

/d /c del /f /q c:\windows\mybatch.cmd

....so the command looks like this in the "Run:" box in the task's properties :


C:\WINDOWS\system32\cmd.exe /d /c del /f /q c:\windows\mybatch.cmd


(obviously, editing the name of your batch [cmd] file name for 'mybatch.cmd' )


OR....

In the "Group Policy Editor" (found on the 'Start Menu' under 'Administrative
Tools' ) navigate to :

Computer Configuration\
Windows Settings\

Then under the "Scripts (Startup/Shutdown)" item, press on the "Add" button and point
the browser at a batch file that you have pre-written with the same (above)
command-line in. i.e.

@echo off
del /f /q c:\windows\mybatch.cmd


....in the batch file. This command will then run at every boot - deleting your batch
[cmd] file.


==

Cheers, Tim Meddick, Peckham, London. :-)




"Bogdan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'd like to kill a batch (cmd) file from a scheduled task (i.e. Control
> Panel.Scheduled Tasks). Is there a command/utility that can do that?
>
> Thanks,
> Bogdan
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need info on scheduled meetings: time scheduled/who scheduled it Joe Bruin Microsoft Outlook Calendar 1 24th Mar 2010 08:36 PM
Kill TS Client... Kill, Kill hamishmurphy@gmail.com Microsoft Dot NET Compact Framework 1 5th Jul 2006 04:48 PM
Process.Kill:How to kill an attached debugger? Manfred Braun Microsoft C# .NET 1 16th Aug 2005 08:53 PM
How to kill a child process when kill the parent process lynn Microsoft Dot NET 0 31st Jul 2003 04:12 PM
How to kill a child process when kill the parent process lynn Microsoft C# .NET 0 31st Jul 2003 04:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 AM.