Discussion Locked

Deleting a directory's contents

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can someone tell me all the details involved in deleting the contents of a certain directory on a certain day every week?

I know it involves NT Scheduler, but I can't seem to get it to work. Also, if it is set up properly and I manually run the script (batch file), that should delete it as well, but it doesn't.

I have the following in the batch file:

del h:\directory\*.* /q

When I double-click on this file, which is saved with a .bat extension, nothing happens. Does anyone know what I'm doing wrong?

6 replies

by kwwhitmire

Put a "pause" after the line to see the results of the delete. This will leave the command window open and maybe you can determine why is not running.

by aspiring_one

How do I insert a "pause"?

Also, I have full control of the directory and I submitted this job to the NT Scheduler using the account that has full control. Does this help any?

This discussion is closed to new replies.