Go Back   Winamp Forums > Community Center > General Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 1st June 2004, 20:48   #1
fwgx
Rudolf the Red.
(Forum King)
 
fwgx's Avatar
 
Join Date: Nov 2000
Posts: 9,315
Regular scheduled downloading & request your own program

After someone asked for a program that could download a file every X number of minutes I created a little java CLI program to do just that.

You just specify the file to be downloaded, the time interval in minutes and the extension to the file and it will be downloaded into the current directory. The file name will be in the format DD-MM-YYYY-HH-MM.[extension]

You run it by calling:

java ShedFile http://www.path.to/file [time between downloads] [extension with no leading dot]

i.e.

java ShedFile http://www.philybaby.co.uk/pictures/new-case-small.jpg 5 jpg
to download that picture.

The java .class file is available here.



Anyway, that's just how bored I am, I hope someone finds it useful.

If you have something that you want programming and isn't too big a deal shout it here and I'll have a look at it (I know Java and C/C++ btw)

.: fwgx.co.uk.:.My art:.

"We think science is interesting and if you disagree, you can fuck off."
fwgx is offline   Reply With Quote
Old 1st June 2004, 23:51   #2
sgtfuzzbubble011
 
sgtfuzzbubble011's Avatar
 
Join Date: Jun 2000
Posts: 60,767
Pretty nifty, but I'm stumped to find a use for it.


Oh, I just thought of a program that I would find very useful, if it's not too much. Would it be possible to make an app that would scan all the files in a given directory and output their filesizes (Size On Disk and actual file size) in both Kb and bytes into a text file in that directory?
sgtfuzzbubble011 is offline   Reply With Quote
Old 2nd June 2004, 07:24   #3
fwgx
Rudolf the Red.
(Forum King)
 
fwgx's Avatar
 
Join Date: Nov 2000
Posts: 9,315
I think I could do that. I'll have a look at it today .

.: fwgx.co.uk.:.My art:.

"We think science is interesting and if you disagree, you can fuck off."
fwgx is offline   Reply With Quote
Old 2nd June 2004, 08:10   #4
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,755
Send a message via AIM to ryan
Sarge: You can probably do that with the dir command from a command prompt.

Start > Run > cmd

Type dir /?
ryan is offline   Reply With Quote
Old 3rd June 2004, 00:54   #5
sgtfuzzbubble011
 
sgtfuzzbubble011's Avatar
 
Join Date: Jun 2000
Posts: 60,767
I need to be able to open the file in metapad and copy/paste the numbers.
sgtfuzzbubble011 is offline   Reply With Quote
Old 3rd June 2004, 00:57   #6
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,755
Send a message via AIM to ryan
You can

Just add > filename.txt to output it to a file.

like

dir > dir.txt
ryan is offline   Reply With Quote
Old 3rd June 2004, 01:07   #7
sgtfuzzbubble011
 
sgtfuzzbubble011's Avatar
 
Join Date: Jun 2000
Posts: 60,767
Oh? I didn't know that.

Cool beans.


[edit]
Damn, that's awesome. Now I wish I'd read that DOS book that I have. Thanks for the info, idiot.

And if you still feel like making that program, Phily, I'd still really appreciate it. But don't feel like I have to have it or anything.
[/edit]
sgtfuzzbubble011 is offline   Reply With Quote
Old 3rd June 2004, 01:11   #8
Fickle
Butterknife of Justice
(Forum King)
 
Fickle's Avatar
 
Join Date: Jan 2002
Location: Behind you.
Posts: 5,504
Is there a way I could turn my computer into a keg of Heineken with little or no work?

Go read a book without pictures
pabook? | Look, a blog! | Buy Stuff I Wrote
Fickle is offline   Reply With Quote
Old 3rd June 2004, 12:51   #9
fwgx
Rudolf the Red.
(Forum King)
 
fwgx's Avatar
 
Join Date: Nov 2000
Posts: 9,315
Yes. Just seal all the holes to make it water proof. Drill a hole in the top. Drill a hole in the side and add a tap. Pour lager in the top hole, dispence from the bottom hole.

Although tbh, you can do a lot better than Heineken!

.: fwgx.co.uk.:.My art:.

"We think science is interesting and if you disagree, you can fuck off."
fwgx is offline   Reply With Quote
Old 4th June 2004, 18:06   #10
xzxzzx
Forum King
 
xzxzzx's Avatar
 
Join Date: Aug 2002
Posts: 7,267
Both of those things would be *so* easy to do in Linux.

Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything.
1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base
The DMCA. It really is that bad. : Count for your life.
xzxzzx is offline   Reply With Quote
Old 4th June 2004, 18:15   #11
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,378
I was gonna suggest cygwin, but I didn't wanna look like a geek

zootm is offline   Reply With Quote
Old 4th June 2004, 18:22   #12
Widdykats
The Forum Slut
 
Widdykats's Avatar
 
Join Date: Jun 2002
Location: A place that invites a post pumping whore from NY
Posts: 15,583
Quote:
Originally posted by zootm
I was gonna suggest cygwin, but I didn't wanna look like a geek
You never look like a geek, zootm!
Widdykats is offline   Reply With Quote
Old 4th June 2004, 18:28   #13
xzxzzx
Forum King
 
xzxzzx's Avatar
 
Join Date: Aug 2002
Posts: 7,267
Quote:
Originally posted by zootm
I was gonna suggest cygwin, but I didn't wanna look like a geek
See, now, so was I...

Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything.
1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base
The DMCA. It really is that bad. : Count for your life.
xzxzzx is offline   Reply With Quote
Old 4th June 2004, 19:01   #14
drewbar
Sawg 2.0
Major Dude
 
Join Date: Mar 2004
Posts: 5,917
Yeah, I have done something like this with cron and wget (Both have non-cygwin ports too). But it is not as noob friendly and I try to avoid explain command-line tools

Count with us!
Jan 1st, 12AM (PST, GMT -8) 2010 - 282,246
drewbar is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off

Forum Jump