Current location: Hot Scripts Forums » General Community » Script Requests » Automated script to delete certain files


Automated script to delete certain files

Reply
  #1 (permalink)  
Old 07-15-03, 05:25 AM
shib_s shib_s is offline
New Member
 
Join Date: Jul 2003
Location: Mumbai, India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Automated script to delete certain files

I want a script that should search for particular folders/paths (eg /home) and identify certain files (eg *.mp3) and delete them. The script maybe written in perl/shell.
The advanced version of the script may include the facility to check for files (eg mp3ifle with extension changed, using the file command in linux).
This prgram maybe run at a particular schedule, using cron, to delete unwanted files on the disk.
Attached Images
File Type: gif shib.gif (6.5 KB, 4605 views)
Reply With Quote
  #2 (permalink)  
Old 08-02-06, 02:42 PM
GarryKiely GarryKiely is offline
New Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Organising files

I am also looking for a script/program that could do this job. I would like to sort out my music folder, where I have many different folders that sometimes go 3 or 4 deep. There are files that I do not want and others I do.

I would like a program that can go through the entire library, and convert all the AAC files in to mp3 that haven’t already been converted, if there are any ACC files with duplicate mp3, to then delete them.

Big job I know, but I have been trying to go through this by hand and it is taking a very long time, and I am afraid my coding skills only go as far as simple visual basic.

Can any one help???

Thank you,
Garry Kiely
Reply With Quote
  #3 (permalink)  
Old 08-03-06, 04:26 PM
reportingsjr reportingsjr is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Well, if you want to do i like a few times daily you can set up a cron job if you have shell access. For the deleting/renaming you will have to use the ftp commands. I can help you in a little bit, ive never actually use the ftp commands so I will have to look into them.
Reply With Quote
  #4 (permalink)  
Old 08-03-06, 05:28 PM
duesi's Avatar
duesi duesi is offline
Wannabe Coder
 
Join Date: Jun 2006
Posts: 225
Thanks: 0
Thanked 0 Times in 0 Posts
Is the stuff residing on a UNIX box?
__________________
Duesi

"One of the great skills in using any language is knowing what not to use, what not to say" (Ron Jeffries)

http://www.swissbytes.de
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 05:08 AM
Download files from another server using script! benweston Script Requests 5 01-17-06 09:29 AM
i know how to delete a file! but how to delete a directory? forcer JavaScript 3 01-28-04 07:00 AM
Looking for Registered Members area access to files .. script zamen Script Requests 3 09-02-03 05:44 AM
Script for picking the first HTML file out of a directory (with sorted HTML files) jelteveld Script Requests 0 08-16-03 01:30 PM


All times are GMT -5. The time now is 11:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.