MSDOS Batch File Question!

M

Maxwell2006

Hi,

I am trying to write a batch file to delete all files older than one hour
within a folder.

Because of some restriction, I cannot use any 3rd party tool.

What would be the most efficient MSDOS batch file to that?

Any help would be appreciated,
Max
 
A

Ayush

Replied to [Maxwell2006]s message :
Hi,

I am trying to write a batch file to delete all files older than one hour
within a folder.

Because of some restriction, I cannot use any 3rd party tool.

What would be the most efficient MSDOS batch file to that?

Any help would be appreciated,
Max


Can you use VBs [VBScript] or JS [JScript] ?
 
S

Stan Brown

Sun, 14 Jan 2007 23:51:07 -0500 from Maxwell2006
I am trying to write a batch file to delete all files older than one hour
within a folder.

Can't be done in the Windows command prompt (what you call "MSDOS").
4NT from Jpsoft can do it with one command.
Because of some restriction, I cannot use any 3rd party tool.

Then you're screwed. Your only options are to get that "restriction"
lifted or write a program or script not batch file) to examine file
dates and delete accordingly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top