Purge Command

Vmware Workstation 7 for windows and lin...
March 30, 2010 at 18:10:29
Specs: Linux Redhat, 2GB
I have data that i keep backup in local drive after send to server. But to prevent the hdd full, i need to purge data that are more than 3 days. anyone know the command in batch?

Thanks in advance


See More: Purge Command

Report •

#1
March 30, 2010 at 20:34:10
install findutils for windows , then

c:\test> gnu_find.exe c:\path -type f -mtime +3 -delete

GNU win32 packages | Gawk


Report •

#2
March 31, 2010 at 02:25:08
thanks, is there any other way aprt from instaling software..like a batch script? coz there are 200 pcs running 24 hours, its hard for me to stop and maintain the software..

Report •

#3
March 31, 2010 at 03:31:18
you only need to download it ONCE. then put the exe in your usb drive or floppy and bring to your PCs. yes, its just an exe.You are not going to open a browser at every PC and download it again and again

GNU win32 packages | Gawk


Report •

Related Solutions

#4
March 31, 2010 at 06:02:27
Your only other option would be something like a VBScript. Batch doesn't handle dates, well, at all.

Report •

#5
March 31, 2010 at 07:26:26
Simramsab, take Ghostdog's advice and distrubute the tool (find.exe) along with your script. It's just an EXE, you do not have to install anything. And while you do that, you will overcome the issue of file distribution onto X-amount of clients, a problem which every administrator has to tackle at least once. If you think about USB, you are doing it wrong, there is something invented called a network, and also features like pushing and pulling files (updates) to client. Think of Windows doing updates by itself. If an MS-engineer had to come to your home with a USB key...

edit : Keep in mind that Windows already has an exe called FIND.EXE, which has a different purpose. To not disturb that one, you would need to rename something, so my advice is to rename the newly introduced find.exe to whatever else.


Report •

Ask Question