Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 02:53:52 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE: Drop target to move files to predefined folders  (Read 29264 times)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #50 on: February 09, 2011, 09:39:50 AM »
Very nice utility!  :Thmbsup:

Thanks, 40hz.  Much appreciated.   :)

Does it have the capability of using assigned directories on flash drives where the drive letter may change?

No...but I'm not sure how I'd go about doing that.   :huh:

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,768
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #51 on: February 09, 2011, 09:43:35 AM »
Me neither! ;D

But I couldn't code my way out of a ticket line, so that should be no surprise.  :)

timns

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,211
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #52 on: February 09, 2011, 10:15:42 AM »


Does it have the capability of using assigned directories on flash drives where the drive letter may change?

No...but I'm not sure how I'd go about doing that.   :huh:

That's a WMI query and quite hassly to code.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,768
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #53 on: February 09, 2011, 10:28:38 AM »
^Probably something better saved for the next NANY if it's hassely to code.


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,477
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #54 on: February 09, 2011, 11:02:25 AM »
Off the top of my head, use dir to determine if a matching Volume Serial Number for the flash drive exists?

ie. User selects a directory on a flash drive, program calls dir to get the VSN and then can check for existance on subsequent copy/move operations.

timns

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,211
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #55 on: February 09, 2011, 11:20:20 AM »
Off the top of my head, use dir to determine if a matching Volume Serial Number for the flash drive exists?

ie. User selects a directory on a flash drive, program calls dir to get the VSN and then can check for existance on subsequent copy/move operations.

Wouldn't that just either 'work or fail' - how does one then get the new letter? Well, without WMI...

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,477
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #56 on: February 09, 2011, 11:23:57 AM »
Wouldn't that just either 'work or fail' - how does one then get the new letter? Well, without WMI...

Cycle through available drives.

Or you could use a marker file, (ie. a file with an uncommon name), and just check for existance on all drives.  The one it appears on gives you the drive letter, used to do this for batch files.  Has the advantage of not using external commands.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #57 on: February 09, 2011, 11:37:35 AM »
Cycling through available drives and comparing serial numbers is definitely doable.  However!  I'd hate to screw that up, you know?  I already dislike writing apps that muck around with people's files and folders.  It's one thing to pooch your own files and another thing, entirely, to pooch somebody else's.

timns

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,211
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #58 on: February 09, 2011, 11:38:41 AM »
Wouldn't that just either 'work or fail' - how does one then get the new letter? Well, without WMI...

Cycle through available drives.

Or you could use a marker file, (ie. a file with an uncommon name), and just check for existance on all drives.  The one it appears on gives you the drive letter, used to do this for batch files.  Has the advantage of not using external commands.

I like the simplicity. But what the effect be of cycling through all drives if there were disconnected shares over a network etc... would there be huge delay while this was happening?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #59 on: February 09, 2011, 11:55:13 AM »
I should mention that Drop Zone does verify your configured paths when it starts up.  If a path is invalid/missing, it does not add it to the popup menu.  If that path later becomes available, simply choose reload from that Drop Zone's context menu.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,477
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #60 on: February 09, 2011, 05:30:12 PM »
Quote
Does it have the capability of assigning to directories on flash drives where the drive letter may change? Be a terrific app for portable use if it did that.

If I've got it right, 40hz is talking about using paths that occur on the drive Drop Zone is running from, so when the initial setup is done couldn't the path for those directories be stored as relative paths?

You only need compare the selected path against the executable path to see if the drive matches, if it does replace the drive designation with sufficient dots and slashes, (morse code for paths :) ), to make it relative to the Drop Zone path.

Then the drive letter becomes irrelevant if it changes.

EDIT: Muddled timns with 40hz, sorry guys you both look like a bunch of electrons from this distance.
« Last Edit: February 09, 2011, 05:32:23 PM by 4wd »

TomD101

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 46
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #61 on: March 29, 2011, 04:16:25 PM »
Hello skwire,
looking for another special tool, I found your dropbox. Another great little app.
I am creating a mp3 folder structure to store all my mp3 I downloaded from a certain (yes, it's legal) portal. Renaming the files to my liking is done via an app by you (TAR) or Krishean. Maybe you remember this thread http://www.donationc...ex.php?topic=24936.0.
Both your tools need to be present in the subdirectory with the mp3 files.
Example:
d:\MP3\Amy Whinehouse - Greatest Fits
d:\MP3\ACDSee - Greatest Hits
d:\MP3\Shakira - Greatest Hips
add another 35 to 60 directories per Month as a safe asumption

I have TAR and the other program stored in d:\MP3. I need it in every subdir. So I would like to have dropbox expanded to the "all level one subdirectories from here" option.
It would mean, I don't have to define special dropzones but it would copy / move / ask it to any next subdir of the maindir.
Aaaand it would skip any subdir, where the file(s) is/are already present. If you want to include version / date control, the better, but not really necessary.
Because: Drum Roll Please!! Every donationcoder tool that gets published, almost never has to be updated again.

Thomas
Berlin, Germany
The more things stay, the more they change the sane.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #62 on: March 29, 2011, 04:23:43 PM »
Maybe you remember this thread http://www.donationcoder....m/index.php?topic=24936.0.

Sure, I remember.  :)

Both your tools need to be present in the subdirectory with the mp3 files.
[...]
I have TAR and the other program stored in d:\MP3. I need it in every subdir.

Correct me if I'm wrong but are you copying the TAR.exe file into every folder that you have MP3s in?  If so, why?!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #63 on: May 25, 2011, 06:12:45 PM »
Website | Download
v1.0.2 - 2011-05-25
    + Add support for Windows environment variables in destination paths e.g:
      1=Desktop|c:\documents and settings\%username%\desktop
      2=Temp|%tmp%
      (Thanks, Gerard)
    * Removed sequential indexing mandate.  Now you can use any number between
      1 and 1000 e.g.:
      100=Desktop|c:\documents and settings\%username%\desktop
      250=Temp|%tmp%
    ! Configured paths that didn't exist would mess up enumeration of existing
      paths.
« Last Edit: May 25, 2011, 06:14:33 PM by skwire »

dragonmage

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 21
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #64 on: May 26, 2011, 08:43:41 AM »
I haven't gotten a chance to try this out yet but it looks very interesting. If the suggestion box is still open I'll probably drop a few ideas/requests here.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #65 on: May 26, 2011, 06:17:50 PM »
I haven't gotten a chance to try this out yet but it looks very interesting. If the suggestion box is still open I'll probably drop a few ideas/requests here.

Sure, feel free.

TomD101

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 46
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #66 on: June 07, 2011, 06:14:07 AM »
Boy, it sure takes a long time to re-visit DC.

skwire: To answer your question from March, 29th.

If I remember right, the file read out by TAR has to be named info.txt or similar (I had no time to sort out my music for several month now, *moan*). So I can't have 1.000.000.000.000 info.txt in my mp3 root dir. I have to move them to the dir where the corresponding mp3 files will be stored.

An inside every dir I call TAR with the info.txt, which then renames the songs according to my wishes.

I'll have to do it again in the next time. As this thread is still active, there might be better solutions, if I ever describe exactly what I do with - meanwhile - three DC apps.

Thomas
The more things stay, the more they change the sane.

Winkie

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 82
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #67 on: August 03, 2011, 03:36:13 PM »
addictive tips has a descent review of Drop Zone today :up::

DropZone – Copy And Move Files To Specified Folders via Drag & Drop

And Howtogeek also noticed that (and did a shameless crop of Skwire's screenshot):
Drop Zone Is a Drag and Drop File Mover

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #68 on: August 03, 2011, 03:51:32 PM »
Cool.  Thanks for the heads up.  I really ought to develop this app a bit more.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #69 on: November 07, 2011, 07:05:37 PM »
Website | Download
v1.0.3 - 2011-11-07
    * If there is only one configured destination, the destination menu will no
      longer pop up (saving you a click).  (Thanks, P. Lazarov)

dragonmage

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 21
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #70 on: December 28, 2011, 01:16:54 PM »
Sorry it took so long to get around to testing. I have some bug reports and some feature ideas.

[BUGS]
  • If two items exist in the ini and one is not a valid path the popup is not created and the operation is executed with the first valid path as the target. (maybe on load you should warn of invalid paths and give the item number)
  • "Reload Settings" attempts to perform the last completed operation again, but with the target of the first valid path in the ini.

[IDEAS]

Functionality
  • I can't seem to find an easy way to set the target to the Recycle Bin. Any ideas?
  • It would be nice to have a quick way to open the target folders. Maybe an "Open Folder" submenu in the context menu that lists all the items by label name. Selecting one opens the corresponding folder. With only one target maybe the folder can be opened by a click or doubleclick on the window.
  • Here's a biggie. Would it be possible to have an alternate mode where you send files to applications rather than folders? It would be great if you could specify arguments in the ini as well.

Appearance
  • Set border color.
  • Set transparency
  • And the biggie... Make it skinnable! Transparent PNG support for the background.

« Last Edit: December 28, 2011, 01:24:52 PM by dragonmage »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #71 on: December 29, 2011, 11:18:16 AM »
[BUGS]
  • If two items exist in the ini and one is not a valid path the popup is not created and the operation is executed with the first valid path as the target. (maybe on load you should warn of invalid paths and give the item number)
  • "Reload Settings" attempts to perform the last completed operation again, but with the target of the first valid path in the ini.

Drop Zone has a feature where, if there is only one valid path configured, no menu will pop up.  However, you do make a good point about informing users about bad paths.  Regarding the "Reload Settings" issue, I'll take a look.

Functionality
  • I can't seem to find an easy way to set the target to the Recycle Bin. Any ideas?
  • It would be nice to have a quick way to open the target folders. Maybe an "Open Folder" submenu in the context menu that lists all the items by label name. Selecting one opens the corresponding folder. With only one target maybe the folder can be opened by a click or doubleclick on the window.
  • Here's a biggie. Would it be possible to have an alternate mode where you send files to applications rather than folders? It would be great if you could specify arguments in the ini as well.

1) I just tried it with the CLSID for the Recycle Bin and it didn't work so I'd assume that it can't be done without some internal code changes.

2) Good idea.  I'll consider adding this.

3) No, I think it would be outside the scope of the program.  You may want to check out DropIt, another similar app with much more capabilities.

Appearance
  • Set border color.
  • Set transparency
  • And the biggie... Make it skinnable! Transparent PNG support for the background.

You won't see skinned stuff from me as it's not my style or preference at all.  Again, check out DropIt and see if it's more suited to your tastes.  Thanks for the feedback, I appreciate it.   :)


Elancore

  • Participant
  • Joined in 2013
  • *
  • Posts: 11
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #72 on: February 12, 2013, 03:36:51 PM »
Thanks
« Last Edit: February 12, 2013, 04:36:19 PM by Elancore »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,669
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #73 on: February 12, 2013, 05:13:28 PM »
You're welcome and welcome to the DonationCoder site.   :)