|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Rudolf the Red.
(Forum King) 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) |
|
|
|
|
|
#2 |
![]() 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?
|
|
|
|
|
|
#3 |
|
Rudolf the Red.
(Forum King) Join Date: Nov 2000
Posts: 9,315
|
I think I could do that. I'll have a look at it today
.
|
|
|
|
|
|
#4 |
|
not fucked, not quite.
(Forum King) |
Sarge: You can probably do that with the dir command from a command prompt.
Start > Run > cmd Type dir /? |
|
|
|
|
|
#5 |
![]() Join Date: Jun 2000
Posts: 60,767
|
I need to be able to open the file in metapad and copy/paste the numbers.
|
|
|
|
|
|
#6 |
|
not fucked, not quite.
(Forum King) |
You can
Just add > filename.txt to output it to a file. like dir > dir.txt |
|
|
|
|
|
#7 |
![]() 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] |
|
|
|
|
|
#8 |
|
Butterknife of Justice
(Forum King) 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?
|
|
|
|
|
|
#9 |
|
Rudolf the Red.
(Forum King) 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! |
|
|
|
|
|
#10 |
|
Forum King
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. |
|
|
|
|
|
#11 |
|
Forum King
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
|
|
|
|
|
|
#12 | |
|
The Forum Slut
Join Date: Jun 2002
Location: A place that invites a post pumping whore from NY
Posts: 15,583
|
Quote:
|
|
|
|
|
|
|
#13 | |
|
Forum King
Join Date: Aug 2002
Posts: 7,267
|
Quote:
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. |
|
|
|
|
|
|
#14 |
|
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
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|