Saving Downloaded files directly in a specific folder

Post Reply
crash2000xp
Posts: 2
Joined: Tue Nov 22, 2005 8:04 pm

Saving Downloaded files directly in a specific folder

Post by crash2000xp »

Is it possible to save downloaded files directly in a folder with the subject of the headers ?? By example, you select all the headers with a specific subject like "XXXXXXXXXXXXXXXXX(1/20)YYYYYYYYYYYYYY". You want to save them in a folder callled "XXXXXXXXXXXXXXXXXXXXXX" or at least something llike the complete subject of the first header....
jaapf
Posts: 203
Joined: Thu Sep 11, 2003 3:06 pm
Contact:

Post by jaapf »

No.
Dutch? Visit the Dutch UE/Newspro forum at: http://www.binaries4all.nl
Nederlandse UE handleiding op http://www.binaries4all.nl/ue
English UE tutorial online at http://www.binaries4all.com/ue/
Handy links at: http://jpfx.zapto.org/
alex
Posts: 4543
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

you can press ctrl+c before invoking the download&save operation, then "new folder" and paste the subject, the program should make a valid file name out of it then.

i may make it more automatic in the future, no immediate plans though, no clear idea.
nicosch
Posts: 5
Joined: Sun Nov 27, 2005 5:29 pm

Post by nicosch »

you can press ctrl+c

shouldn't that be ctrl+d?
Leechmonkey
Posts: 59
Joined: Sat Nov 05, 2005 1:28 pm

Post by Leechmonkey »

I think what alex was saying is selecting Ctrl-c first before Ctrl-D. When a header "line" is selected and you hit Ctrl+c, the line gets pasted to the clipboard.

When you hit Ctrl+D, you can just paste the clipboard as the name for the folder.
nicosch
Posts: 5
Joined: Sun Nov 27, 2005 5:29 pm

Post by nicosch »

Thank you Leechmonkey.
I didn't understand.

nicosch
alex
Posts: 4543
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

maybe i'll add something like that shortly.

with newspro folder dialog it is mine so i can put folder prompt there (if the dialog is called at all).

with the standard windows browse folder dialog it is not straightforward since i cannot build subclass it in (build it in) my own dialog i.e. we'll need another dialog in between with the folder prompt.

i don't remember with UE but i think it is the same as newspro the "default" folder in properties->newsgroups is changing when you switch it (so it is like it remembers the last place where you save), but if to use it as an anchor folder for those directories based on newsgroup names the the default folder should be constant in properties (so i'll need to keep the changing temporary folder for other uses separatedly which will amount to the "default" entry folder on the program start) - if someone understand what i'm talking about :)

i could add that on the top of existing implementation.
MEANDMYHOMIE
Posts: 2
Joined: Fri Nov 25, 2005 8:07 am

Looking forward to auto directory

Post by MEANDMYHOMIE »

Thank you Alex. Great work!
AlkanMM
Posts: 2
Joined: Fri Dec 02, 2005 12:43 am

WIBNI - Save folder dropdown

Post by AlkanMM »

I hope that I'm posting this in the right place.

1st off - GREAT WORK! THANKS!

When I do a Ctrl-D to download files, I was thinking that it would be really nice if the "Save attachments" dialog box's text entry field was a drop-down list with Most Recently Used (MRU) directory names. Nothing outrageous - maybe just the last 15-20. Winrar's "Extract To" is a fine example of what I mean.

Waddaya think?
alex
Posts: 4543
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

yes, it looks like in winrar the tree control from browse for folder control (same as in windows explorer) is somehow embedded, but such subclassing is not documented, i looked thoroughly in the past and didn't find anything specific, only many people are complaining in groups.

i'll try to check somewhere in window explorer related sources (since it is possible the solution should be there then). shell32.dll interface is not openly available, maybe he got it somehow legally.
AlkanMM
Posts: 2
Joined: Fri Dec 02, 2005 12:43 am

Post by AlkanMM »

Alex - Thanks for taking the time to reply.

I didn't even consider subclassing. I was just thinking that instead of using an edit box, to use a drop-down combo box. The dropdown list part's contents could be in an .ini file or one of your own private registry entries. I'd advocate for having a few (4-5) persistent entries - ie Favorites, or Bookmarks, and having all others fall off the list when it's limit is reached.

There's an over-the-top bit of source at:
http://www.codeproject.com/combobox/Tre ... ect=917934

If, on the other hand, you're utilizing a pre-packaged control where the TreeView and the edit box are all bundled together, then we're seriously talking about a horse of a different color.
alex
Posts: 4543
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

no the problem is not in the combo box, it is in the windows browse for folder control.

if you open windows explorer and invoke "explore" you see the directory tree in the left window, exactly the same tree is in winrar (the context menu is the same so this is not an imitation) is inserted into the dialog. as to windows gui there is only th function SHBrowseForFolder, SH stands for shell (shell32.dll). the control there is exactly the same.

the problem is there is no documented way to embed the directory control into a dialog (try to check google groups e.g. for 'embedding SHBrowseForFolder dialog'). but shell32.dll has undocumented interface functions that can be used, if you heard about leaked windows sources they have some shell related code so the functions maybe could be derived from there. frankly i didn't think about this solution before.

as to winrar he somehow managed to get the interface to the dll most probably from someone since i guess the control was there even before the microsoft code leak, no wonder since winrar is very widely used.

the combo box could be easily added to the custom dialog taken from newspro but it should be both. if to embed the standard windows directory tree control i also could get rid from malfunctioning in winxp "new folder" button.
Post Reply