vista task scheduler help

This topic is locked from further discussion.

Avatar image for chronogamer27
chronogamer27

1502

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1 chronogamer27
Member since 2006 • 1502 Posts

is there any way i can use the task scheduler on vista to tell it to delete a folder every week? i use firefox, and have all my downloads set to one folder, and that folder can get especially big because for some reason my firefox wont let me just open and run .exe's, i have to save them.

anyways, i'm looking at the task scheduler right now, and the only three options for 'Actions' tab are Start a program, Send an e-mail, and Display a message.

i know that 'delete' or 'clear folder' isnt in there, so i probably cant do what i'm trying to do, but i just wanted to make sure that there isnt any other way i could have this work.

thanks in advance.

Avatar image for threepac81
threepac81

3459

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2 threepac81
Member since 2003 • 3459 Posts
You can create a BATCH file that can do it. But I forgot the commands.
Avatar image for XaosII
XaosII

16705

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#3 XaosII
Member since 2003 • 16705 Posts

You can create a BATCH file that can do it. But I forgot the commands.threepac81

^^^^ This.

You can tell it to run a batch file that deletes the folder. You'll probably want to look up on Google how to make a batch file and the commands. Its easy, its just that most people dont remember how to type each command off the top of their heads.

Avatar image for threepac81
threepac81

3459

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#4 threepac81
Member since 2003 • 3459 Posts

[QUOTE="threepac81"]You can create a BATCH file that can do it. But I forgot the commands.XaosII

^^^^ This.

You can tell it to run a batch file that deletes the folder. You'll probably want to look up on Google how to make a batch file and the commands. Its easy, its just that most people dont remember how to type each command off the top of their heads.

I agree completely...

Avatar image for Gog
Gog

16376

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5 Gog
Member since 2002 • 16376 Posts

Just create a text file in notepad, type the following commands:

cd \fullpathtoyourfolder

del * /q

Save the file as myjob.bat and create a scheduled task that points to this file.

Avatar image for threepac81
threepac81

3459

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#6 threepac81
Member since 2003 • 3459 Posts

Just create a text file in notepad, type the following commands:

cd \fullpathtoyourfolder

del * /q

Save the file as myjob.bat and create a scheduled task that points to this file.

Gog

Nice look.. I knew someone would know the command.

Avatar image for chronogamer27
chronogamer27

1502

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#8 chronogamer27
Member since 2006 • 1502 Posts

i read a guide earlier before you posted Gog (thanks btw), and i just put:

@echo
del /s /q foldername(backward slash)*

and it seems to get the job done. whats the difference between mine and yours? is yours any better?