Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: geeks, help me delete files automatically

  1. #1
    I'm T-Paine, you know me? Reputation: 535 Shade-of-Grey's Avatar
    Join Date
    Mar 2008
    Posts
    3,849

    Default geeks, help me delete files automatically

    can anyone think of a way to do this...maybe with a script or some such?

    basically I have a computer set up to do nothing but host ventrilo and download TV shows using miro. Since miro doesnt automatically delete the shows it downloads unless i watch them ON miro, which i dont (i stream them to my xbox), they're just building up and i'm having to delete them automatically

    my folder structure looks like this

    \Miro\Lost\LostS03E14.avi , Lost S03E13.avi
    \Miro\Heroes\HeroesS03E01.avi

    etc etc.

    Basically I want something to be able to automatically delete a file after it's been there for about a week.

  2. #2
    Seņor Member Reputation: 393
    Join Date
    Feb 2008
    Location
    Loco's Biatch
    Posts
    2,261

    Default Re: geeks, help me delete files automatically

    Well you can make a batch file with something like

    delete path/to/your/folder/*.*

    and run it manually / put in your Autostart. As for automating that, look at some online task scheduling programs (wait doesn't windows have that already?) and simply hook up the batch file to that.

  3. #3
    I'm T-Paine, you know me? Reputation: 535 Shade-of-Grey's Avatar
    Join Date
    Mar 2008
    Posts
    3,849

    Default Re: geeks, help me delete files automatically

    yeah i could automate it with task scheduler

    but i have very little idea of how to write a batch script

    and i dont want to have to make a seperate one for every single shows' folder, just one for the Miro folder

  4. #4
    bro Reputation: 1641 Faceman's Avatar
    Join Date
    Feb 2008
    Location
    Freudenabteilung
    Posts
    8,444

    Default Re: geeks, help me delete files automatically

    Google it. They are very easy to write.

  5. #5
    Seņor Member Reputation: 393
    Join Date
    Feb 2008
    Location
    Loco's Biatch
    Posts
    2,261

    Default Re: geeks, help me delete files automatically

    batch files are text files with dos commands in it and the extension .bat

    so open notepad, put in:
    delete path/to/your/folder/*.*

    where the path is to the miro folder

    and save as "mylittlepony.bat" and run it; it will delete everything in the miro folder

    or am I not understating what you want?

    edit: the command you may need is deltree since miro may have sub folders which delete won't remove. you may also need to put deltree -r path/to/bla to make it recursive. as face said, google dos delete/deltree, it's really simple

  6. #6
    Gooooooood plutonium! Reputation: 532 Cheeto's Avatar
    Join Date
    Feb 2008
    Location
    The Tardis
    Posts
    6,188

    Default Re: geeks, help me delete files automatically

    It would help to know what OS this is.

    If it's Windows there's almost certainly a freebie utility out there somewhere, but failing that you could do like they say and just do up a batch file and have it run automagically with the built in scheduler.

    If it's Linux/Unix you would write a bash script and have it tied to a cron job.
    "Well to be honest, after years of smoking and drinking, you do sometimes look at yourself and think, you know, just sometimes between that first cigarette with coffee in the morning to that 400th glass of corner shop piss at 3AM, you do sometimes look at yourself and think...this is fantastic." - Bernard Black

  7. #7
    Do Not Ask Reputation: 1397 Maxey's Avatar
    Join Date
    Feb 2008
    Posts
    7,504

    Default Re: geeks, help me delete files automatically

    Shift+Delete

  8. #8
    ☃☃☃☃☃☃☃☃☃☃ Reputation: 1212 Lithium's Avatar
    Join Date
    Feb 2008
    Posts
    2,527

    Default Re: geeks, help me delete files automatically

    Quote Originally Posted by Maxey
    Shift+Delete
    FUCKING POST SUCKS
    \

  9. #9
    Senior Member Reputation: 437
    Join Date
    Feb 2008
    Location
    Fort Lewis, Washington
    Posts
    4,080

    Default Re: geeks, help me delete files automatically

    Oh my god, too much Bill O'Reilly flipping out, not enough reps.

  10. #10
    I'm T-Paine, you know me? Reputation: 535 Shade-of-Grey's Avatar
    Join Date
    Mar 2008
    Posts
    3,849

    Default Re: geeks, help me delete files automatically

    1) its windows vista

    2) i tried googling it and i couldnt figure it out

    3) i dont want to delete all the files, just to delete files after a certain amount of time of existance. so for instance i'd want to delete show 1 that has been there for 7 days, but not show 2 which has only been there 3 days.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •