Page 1 of 1
Saving Downloaded files directly in a specific folder
Posted: Wed Nov 23, 2005 12:23 pm
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....
Posted: Wed Nov 23, 2005 5:06 pm
by jaapf
No.
Posted: Wed Nov 23, 2005 7:41 pm
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.
Posted: Sun Nov 27, 2005 5:32 pm
by nicosch
you can press ctrl+c
shouldn't that be ctrl+d?
Posted: Mon Nov 28, 2005 3:40 am
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.
Posted: Mon Nov 28, 2005 6:08 am
by nicosch
Thank you Leechmonkey.
I didn't understand.
nicosch
Posted: Mon Nov 28, 2005 11:34 pm
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.
Looking forward to auto directory
Posted: Tue Nov 29, 2005 1:57 am
by MEANDMYHOMIE
Thank you Alex. Great work!
WIBNI - Save folder dropdown
Posted: Tue Feb 07, 2006 10:41 am
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?
Posted: Thu Feb 09, 2006 4:43 pm
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.
Posted: Fri Feb 10, 2006 11:24 am
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.
Posted: Fri Feb 10, 2006 1:45 pm
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.