Re: MSDOS Batch File Question!



Sun, 14 Jan 2007 23:51:07 -0500 from Maxwell2006
<alanalan@xxxxxxxxxxxxxxxx>:

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.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
.



Relevant Pages

  • Re: How to copy several txt files into one huge file?
    ... In a Windows command prompt, you can use this syntax to build a concatenated ... It works in a batch file too. ... mvpearl omitthisword at verizon period net ...
    (microsoft.public.excel.misc)
  • Re: Absolute Beginner - Where to run program?
    ... You'll find further details on the Windows Command Prompt here... ... should put them and/pr run them from? ... this sample ruby program, should i just put it in the C:/ruby folder? ...
    (comp.lang.ruby)
  • Re: Absolute Beginner - Where to run program?
    ... You'll find further details on the Windows Command Prompt here... ... this sample ruby program, should i just put it in the C:/ruby folder? ... installation just to keep things neat and clear. ...
    (comp.lang.ruby)

Loading