PDA

View Full Version : Regular scheduled downloading & request your own program


fwgx
1st June 2004, 20:48
After someone asked for (http://forums.overclockers.co.uk/showthread.php?s=&threadid=17232458) 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 (http://www.philybaby.co.uk/projects/ShedFile/ShedFile.zip).



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)

sgtfuzzbubble011
1st June 2004, 23:51
Pretty nifty, but I'm stumped to find a use for it. :weird:


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? :D

fwgx
2nd June 2004, 07:24
I think I could do that. I'll have a look at it today :).

ryan
2nd June 2004, 08:10
Sarge: You can probably do that with the dir command from a command prompt.

Start > Run > cmd

Type dir /?

sgtfuzzbubble011
3rd June 2004, 00:54
I need to be able to open the file in metapad and copy/paste the numbers. :)

ryan
3rd June 2004, 00:57
You can

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

like

dir > dir.txt

sgtfuzzbubble011
3rd June 2004, 01:07
Oh? I didn't know that.

Cool beans.



Damn, that's awesome. Now I wish I'd read that DOS book that I have. :D 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. :)

Fickle
3rd June 2004, 01:11
Is there a way I could turn my computer into a keg of Heineken with little or no work?

fwgx
3rd June 2004, 12:51
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!

xzxzzx
4th June 2004, 18:06
Both of those things would be *so* easy to do in Linux.

zootm
4th June 2004, 18:15
I was gonna suggest cygwin, but I didn't wanna look like a geek ;)

Widdykats
4th June 2004, 18:22
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!
:cool:

xzxzzx
4th June 2004, 18:28
Originally posted by zootm
I was gonna suggest cygwin, but I didn't wanna look like a geek ;) See, now, so was I...

drewbar
4th June 2004, 19:01
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 :D