topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 3:45 am
  • Proudly celebrating 15+ 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 70306 times)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #50 on: February 09, 2011, 09:39 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,857
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #51 on: February 09, 2011, 09:43 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 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,857
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #53 on: February 09, 2011, 10:28 AM »
^Probably something better saved for the next NANY if it's hassely to code.


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,641
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #54 on: February 09, 2011, 11:02 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 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: 5,641
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #56 on: February 09, 2011, 11:23 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: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #57 on: February 09, 2011, 11:37 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 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: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #59 on: February 09, 2011, 11:55 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: 5,641
    • View Profile
    • Donate to Member
Re: IDEA: Drop target to move files to predefined folders
« Reply #60 on: February 09, 2011, 05:30 PM »
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 PM by 4wd »

TomD101

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 48
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #61 on: March 29, 2011, 04:16 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 https://www.donation...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: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #62 on: March 29, 2011, 04:23 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: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #63 on: May 25, 2011, 06:12 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 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 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: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #65 on: May 26, 2011, 06:17 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: 48
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #66 on: June 07, 2011, 06:14 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: 93
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #67 on: August 03, 2011, 03:36 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: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #68 on: August 03, 2011, 03:51 PM »
Cool.  Thanks for the heads up.  I really ought to develop this app a bit more.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #69 on: November 07, 2011, 07:05 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 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 PM by dragonmage »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #71 on: December 29, 2011, 11:18 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 PM »
Thanks
« Last Edit: February 12, 2013, 04:36 PM by Elancore »

skwire

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

wazu

  • Participant
  • Joined in 2022
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: DONE: Drop target to move files to predefined folders
« Reply #74 on: June 20, 2022, 12:53 PM »
Is it possible to configure to upload to my website or can it be run on the website to collect from my pc?
many many thanks