Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 06:46:25 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: REQUEST: Program that deletes all files/subdirectories in a directory...  (Read 11617 times)

Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 221
    • View Profile
    • Donate to Member
...or directories that are older than a certain amount of time without displaying any windows. The only freeware program I know that does some of what I'm requesting is e.Purge (unfortunately, it seems that the developer of it gave up on developing it further).

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #1 on: October 16, 2007, 10:58:53 PM »
Here ya go.  Something I picked up way back in the summer of '06.

Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 221
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #2 on: October 16, 2007, 11:22:16 PM »
That's not what I was asking for. That program just deletes folders that are already empty.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #3 on: October 16, 2007, 11:35:29 PM »
Whoops, my bad.  I misread your request.

Erm... DEL /S /Q *.* gets rid of the files, then RMEMP12 does the rest...

/got nuthin

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,606
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #4 on: October 16, 2007, 11:55:49 PM »
how about this then...

Quote
DelAge32 deletes or moves files with a mimimum age given by the number of days.
Syntax:   DelAge32 filespec days [options]

The files are specified by search pattern (e.g. *.* for all files), with relative or absolute path.

Options include: /recurse (subdirectories), /subonly (excluding initial directory), /includeRO, /rd (remove directory), /move target, /created (use "created" time stamp instead "last modified"), /accessed ..

Example:   DelAge32 C:\some\where\*.* 100 /recurse

Deleted files are listed with age (number of days). The output can be redirected to a file.
With option /preview the action can be safely tested without actually deleting or moving files.

http://home.mnet-onl...t.muc/wbat32.htm#top

maybe not an exact fit, but it's small, and free...

Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 221
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #5 on: October 16, 2007, 11:58:14 PM »
That's closer to what I'm after, but, it still uses a window and has no GUI.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #6 on: October 17, 2007, 12:30:19 AM »
So, you want a right-click context menu, or a utility dialog that lets you select a folder for destruction or what...?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,029
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #7 on: October 17, 2007, 09:30:35 AM »
Funny that DOS and Win9x had DELTREE...
- carpe noctem

Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 221
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #8 on: October 17, 2007, 11:28:36 AM »
A utility that's similar to e.Purge, but also with the option of deleting everything in the folder.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #9 on: October 17, 2007, 03:35:09 PM »
From the e.purge website (http://www.wajasoft.com):
Quote
It deletes files and folders. It's a task scheduler program that operates the task on the background. It performs the job of cleaning when the occurrence due date and time is recurred. Assuming that this program is your cleaning agent.

It manages routinely task as well as specific date and time jobs by performing the tasks according to your schedule settings. Enter the inputs to tell it where exactly the folder location to be managed and what is the type of style of task and when you want it to be executed, the rest... leave it to NaSa's e.Purge.

Wow, that's a lot of functionality.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #10 on: October 17, 2007, 04:25:44 PM »
Funny that DOS and Win9x had DELTREE...

Funny you should say that...
http://209.85.165.10...amp;client=firefox-a

RMDIR /S appears to give the same functionality in XP.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,029
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #11 on: October 17, 2007, 05:22:31 PM »
Heh doh, thanks - already coded my own deltree tool though :P
- carpe noctem

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #12 on: October 17, 2007, 07:12:30 PM »
Funny that DOS and Win9x had DELTREE...

Funny you should say that...
http://209.85.165.10...amp;client=firefox-a

RMDIR /S appears to give the same functionality in XP.

Clicking on this link produces a fraud warning in Opera  :D  ;D

2007-10-18_080949.jpg




Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 221
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #13 on: October 17, 2007, 08:15:54 PM »
Heh, That fraud warning happens on any page that's being viewed using Google's Cache. I hope that they fix that problem soon.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #14 on: October 17, 2007, 08:57:57 PM »
Weasels.  I intentionally went to the cache for the highlighting.

alexbohl

  • Participant
  • Joined in 2007
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
Re: REQUEST: Program that deletes all files/subdirectories in a directory...
« Reply #15 on: November 07, 2007, 11:34:11 PM »
Dont know where the problem is...

Just create StartHidden.vbs and put in the following 2 lines:

Set WindowsShell = WScript.CreateObject( "WScript.Shell" )
WindowsShell.Run "c:\Hiddenstart\deleteTask.bat",0,True

In deleteTask.bat u can remove folders with:
RD C:\temp /Q /S

or using the mentioned DelAge32 programm from Horst Scheaffers.

U may add logs with:
echo Task started %date% %time% >>logfile.log

then put the vbs in taskmanager. the batch will be started
without window.

Alex