Create Folder while copy/move?

Hello jaquestati,
I'm glad it works !

Default Action: Copy to Dest, Open in New Tab .

runmode hide
"C:\Program Files\GPSoftware\Directory Opus\FlexFolder.exe" CDT {sourcepath|noterm} "{dlgstring|Specify New Folder to COPY/MOVE items to ... } " {destpath|noterm}

Default Action: Move to Dest, Open in New Tab .

runmode hide
"C:\Program Files\GPSoftware\Directory Opus\FlexFolder.exe" MDT {sourcepath|noterm} "{dlgstring|Specify New Folder to COPY/MOVE items to ... } " {destpath|noterm}

I made a a DOpus toolbar which contains a sample FlexFolder button that has the default action as MOVE. You can download it here.

:opusicon: porcupine

ok it works great :slight_smile:

i'll take it :slight_smile:

saves me a ton of time......

hate to gripe.... i'm so happy i've found this :slight_smile: but is there any way to make it create the new directory as a subdir of the selected files lister instead of the folder open in the other lister?

It is not a gripe, you are beginning to understand.

Yes !
Change MDT to MST , or MSF , or MSN .

M is move, C is Copy .
D is Dest, S is Source .
T is Open Folder in New Tab, F is Open Folder, N is Normal or Not Open Folder.

If you need these letters ( M, D, T , ... ) in another language, I could write a version for you.
I would need to know what the translated letters would be.

:opusicon: porcupine

thanks :slight_smile:

now i have it working perfectly....... and witha kb shortcut

sigh.......

it's like christmas.....

back to one click move/create subdirs :slight_smile:

so much time saved everyday :slight_smile:

In case anyone on this old thread hasn't noticed, with the release of 8.2.0.0 update, GPSoft has added a CREATEFOLDER argument to the Copy command which allows the creation of a new folder to be used as the destination for a copy/move op. Personally I use it like so:

dopusrt /cmd Copy TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to COPY items to...|{d}}"

... because I like to see the destination path in the dialog that opens up. Otherwise, you can just use something like Copy TO HERE CREATEFOLDER and Dopus prompts you with it's own dialog "Enter the name of the destination folder to create.".

Cheers... and woo-hoo! Who's better than Jon and Greg?

[quote="steje"]Well Hell to you too mrwul...

Once upon a time I came up with this series of commands that did what I think you're looking to do:

sync:dopusrt /cmd Clipboard COPY
sync:dopusrt /cmd CreateFolder "{dlgstring|Specify folder-name to create and COPY items to...|{destpath$}}" READAUTO
sync:dopusrt /cmd Clipboard PASTE
sync:dopusrt /cmd Go {sourcepath$}

...but somewhere along the line it's proven to be not all that reliable. It often doesn't actually copy the files in some cases - and I'm not sure 'why'. Damn...

I recently tried doing it with just a plain Dopus Copy command and using environment variables to save the new folder path, and THAT doesn't quite work either. Double damm...

I know some ppl here like JohnZeman are fans of external copy utilities like xxcopy, and it works fine for a single file copy, but not so good with multiple files (get prompted to create the new folder for every file:-)). Triple damn...

In any event, I'd prefere to keep the Dopus copy progress window anyway, so I REALLY REALLY wish Gpsoft would extend the internal Copy command functionality to accept an argument to create a new directory in the destination.[/quote]

Hello to you,

Guess it is still not part of Directory Opus??

Frankly, it works really fine with me - I use it often.
COme to think of it: image I have to install DO from scratch
Actually I would have to make a study of it again, how I got
it working :confused: , so best is that this is one of the default things of DO,
right?

brgds

Huh??? Didn't you read the very last post from 25 Oct 2005? GPSoft did indeed add this support internally with the 8.2 release. Everything that used to require the 4 separate commands in the quote you mentioned can now be done with the one new command mentioned in my last post. If it wasn't clear from the previous posts, you can change the {d} to {s} if you want the new folder created in the 'current/source' folder instea dof in a destination folder.

[quote="mrwul"]Actually I would have to make a study of it again, how I got it working :confused: , so best is that this is one of the default things of DO,
right?[/quote]

Check out the Settings->Import and Export... feature. There should be very little reason to have to ever go back and figure something out again if you export your settings periodically. The feature saves all customizations to a single (.DPS) file which you can always re-import to get all of your settings back. I suggest keeping several copies of exported settings around... one you consider to be a 'known' stable and properly working configuration, and then 'incremental' settings as you experiment with changing your configuration to do new things.

Huh??? Didn't you read the very last post from 25 Oct 2005? GPSoft did indeed add this support internally with the 8.2 release. Everything that used to require the 4 separate commands in the quote you mentioned can now be done with the one new command mentioned in my last post. If it wasn't clear from the previous posts, you can change the {d} to {s} if you want the new folder created in the 'current/source' folder instea dof in a destination folder.

[quote="mrwul"]Actually I would have to make a study of it again, how I got it working :confused: , so best is that this is one of the default things of DO,
right?[/quote]

Check out the Settings->Import and Export... feature. There should be very little reason to have to ever go back and figure something out again if you export your settings periodically. The feature saves all customizations to a single (.DPS) file which you can always re-import to get all of your settings back. I suggest keeping several copies of exported settings around... one you consider to be a 'known' stable and properly working configuration, and then 'incremental' settings as you experiment with changing your configuration to do new things.[/quote]

Hi,
Oops! :blush:
eh...
Well, frankly, no, I was not subscribed to this thread anymore. Sorry.
However, as I am using this feature sooo many times and am very happy with it (ever been reorganizing many hundreds of photos and other stuff?)
and was wrongly assuming that it would not have been included i thought i would re-start this thread again.

I have not yet used the new feature of 8.2: still using the below .cmd file.
Have shortly glanced at the 'overview of new features' but cud not trace this new feature being mentioned.

As said, I am still using the .cmd-file which was given earlier in this thread.

//
rem BEGIN BATCH FILE
@echo off
dopusrt /cmd CreateFolder %1
set DST=%1
:loop
shift
if {%1}=={} exit
dopusrt /cmd Copy %1 TO %DST%
goto:loop
rem END BATCH FIL
//

Have to tell, I am an 'simple end-user' only. Most likely I am using only a fraction of DO's power and features.
Because me being just an end-user, pls accept that I am not familiar with all these 'expert'-internal command-things.

The above works fine and frankly I have to go way back in this thread to find out hów I got it working... :wink:

Same as that one way or the other I have managed to get three buttons (all being the same) for an external program in my toolbar.
(\flashrename.exe). Spent already quite some time to figure out how I can get rid of it. Actually, I gave up and will leave the buttons there
(one of them even does not work, it produces an error).
Guess if I were to re-install DO, then they will be gone.
(this is one of the reasons for me asking whether the create folder feature was part of 8.2 - being afraid that after a fresh install I had
to go all over the create folder.cmd-file-stuff again to get it working etc. ahum)

See, this is just one of those things, where an expert wud say, look there and there and do that.

Same as that I'd like to have 'create folder' under the RMB.

Same as I wud like to have the box-size (above .cmd-file) say a dozen characters wider,so I cud see a bit more of the path.

But then again, those are really minor things.

As for .dps - thank you for yr advice. Have very recently started to export settings.

Thank you again.

--

mrwul... I wasn't complaining or anything, I just found it funny that you posted a message asking if the feature would be better off built directly into Opus immediately after another post that announced "it's been built into Opus" - LOL.

Anyhow, I'd be more than happy to go over cleaning out your old buttons that aren't working for you, as well as to convert your .cmd file method with the built-in Opus feature for the copy/create folder maneuver... You can also check out Leo's and Gus's opus tutorials where they instruct on editing toolbars and such things if you want a good start on re-learning how to configure these things.

But for now, just let us know... how do you perform the Copy and create folder maneuver? Never mind the script for now... what do you do inside of Opus? Do you use a button, hotkey, or drag and drop maneuver? One benefit of using the recent built-in Opus method over the .cmd file script method we got from JohnZ is that a single <Ctrl+Z> keystroke will undo ALL of the files copied/moved... whereas the script file method will only undo one item at a time because each item (if multiple were selected) is being processed one at a time by the 'shift-ing' being done in the cmd script. Let's update your copy method first, then clean out the non-working buttons... but before you do ANYthing, just go to the Import and Export feature I mentioned above and save your current configuration to a file. If anythign get's whacked by mistake - it'll be a snap to put it back before continuing on...

[quote="steje"]mrwul... I wasn't complaining or anything, I just found it funny that you posted a message asking if the feature would be better off built directly into Opus immediately after another post that announced "it's been built into Opus" - LOL.

Anyhow, I'd be more than happy to go over cleaning out your old buttons that aren't working for you, as well as to convert your .cmd file method with the built-in Opus feature for the copy/create folder maneuver... You can also check out Leo's and Gus's opus tutorials where they instruct on editing toolbars and such things if you want a good start on re-learning how to configure these things.

But for now, just let us know... how do you perform the Copy and create folder maneuver? Never mind the script for now... what do you do inside of Opus? Do you use a button, hotkey, or drag and drop maneuver? One benefit of using the recent built-in Opus method over the .cmd file script method we got from JohnZ is that a single <Ctrl+Z> keystroke will undo ALL of the files copied/moved... whereas the script file method will only undo one item at a time because each item (if multiple were selected) is being processed one at a time by the 'shift-ing' being done in the cmd script. Let's update your copy method first, then clean out the non-working buttons... but before you do ANYthing, just go to the Import and Export feature I mentioned above and save your current configuration to a file. If anythign get's whacked by mistake - it'll be a snap to put it back before continuing on...[/quote]

Hello Steje - thank you so much for the feedback and sorry for the delay. I have freshly installed WinXP so it would run smoothly again.

Obviously Opus needed to be freshly installed. Have decided not to import a previous settings-file, as that would mean the 'faulty' toolbar again.

Anyway, I had to study the thread again to get the move/copy cmd thing working...

I am using the drag and drop way of copying moving files. To me it is really magnificant. You may select a few files and drag to a newly created folder.

To be frank, before I got the script-thing working again (so with a new 8.2 installed, which shd include the create folder option) I tried to the same.
I noticed something with 'Create folder' - I think it prompted me to provide a folder name, but i think it misses to provide the full path (?)
Maybe I am just using this new option the wrong way... So I quickly tried to the scripts working.
To increase the window-box size I added some spaces behind copy items to ... see below.

"{dlgstring|Specify new folder-name to COPY items to... extra spaces here |{d}}" {F}

I am not sure whether I would prefer anything else that this script-solution... :wink:

Ctrl-Z: it says "Undo" in the drop down menu, but when I ctrl-z a file or folder it gets me a warning window saying:
"Really send the file (name) to the Recycle Bin ?"

brgds

Hi mrwul... no problem, though I think you're making it a little hard on yourself :slight_smile:.

The command I posted back in October will do exactly what your script method is doing - without need for modification - without a doubt :slight_smile:. I've included below... with just the spaces added for padding like how you wanted.

dopusrt /cmd Copy TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to COPY items to...           {d}}"

The {F} you were adding to the end of your example was only required when using the old script method, and is likely what messed up showing the full path info when you tried it that way.

[quote="mrwul"]when I ctrl-z a file or folder it gets me a warning window saying:
"Really send the file (name) to the Recycle Bin[/quote]
This is totally normal when doing any sort of Copy operation... 'Undoing' a copy means 'delete' the copied items :slight_smile:.

You really should not have been afraid to import your settings. Removing unwanted buttons takes a few seconds, and it's something you should get familiar with - just ask if you want help.

[quote="mrwul"]I am not sure whether I would prefer anything else that this script-solution...[/quote]LOL...

[quote="steje"]Hi mrwul... no problem, though I think you're making it a little hard on yourself :slight_smile:.

The command I posted back in October will do exactly what your script method is doing - without need for modification - without a doubt :slight_smile:. I've included below... with just the spaces added for padding like how you wanted.

dopusrt /cmd Copy TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to COPY items to...           {d}}"

The {F} you were adding to the end of your example was only required when using the old script method, and is likely what messed up showing the full path info when you tried it that way.

Great!
This is even better, cause I cannot accidentally delete the path, which cud .. happen in the previous version.

[quote="mrwul"]when I ctrl-z a file or folder it gets me a warning window saying:
"Really send the file (name) to the Recycle Bin[/quote][/quote]
This is totally normal when doing any sort of Copy operation... 'Undoing' a copy means 'delete' the copied items :slight_smile:.

Well, I gave it a try again just now. Moved file to a new directory.
Hit ctrl-z and the action was undone, i.e. i was back in the 'before-move'
situation. however.. this time there was no pop-up window telling me
that files wud be sent to the recycle bin (which from my point of view means delete and I wud need to restore them from the recycle bin...)
Now - this pop-up warning is confusing: same window as if i were to hit the del-key.
this pop-window did not appear this time.
peculiar...

Steje - thanks for yr patience and support.

one last thing - admittedly i am misusing the opportunity - i have not looked at the solution in the forum yet - but eh ... is there a simple way to just add "Create Folder" to the RMB-options. I have it on the toolbar, but like to have it under the rmb.

thks again

If you MOVE files then an undo will move them back.

If you COPY files then an undo will delete the copies.

np mrwul...

For the RMB CreateFolder option it depends. Do you want it when you click RMB on empty white space inside of the current folders file display, or when you right click on a folder icon shown in the file display? Personally, I have a hotkey bound to that creates a folder but, to each his own...

[quote="steje"]np mrwul...

For the RMB CreateFolder option it depends. Do you want it when you click RMB on empty white space inside of the current folders file display, or when you right click on a folder icon shown in the file display? Personally, I have a hotkey bound to that creates a folder but, to each his own...[/quote]

Hi Steje, the last option, i.e. when I have clicked on folder and wish to create a (sub)folder there, e.g. for the purpose of moving/copying files from the first folder to the new one.
I admit, it is small issue only. But in fact i wud have expected this option under the rmb. Delete/Rename/Copy exist, then why not "create". :wink:

tks

Settings->File Types->All folders->Context Menu

  • Click the New button to create a new context menu command for folders
  • in the Edit new action... dialog that appears type New Folder into the 'action' field
  • select Run an Opus function (not supported in Explorer) from the' type:' drop down field
  • in the function edit window that appears at the bottom paste this:

CreateFolder READAUTO=no

though isn't...

...what this whole create folder while copying/moving files thread was for :slight_smile:?

[quote="steje"]Settings->File Types->All folders->Context Menu

  • Click the New button to create a new context menu command for folders
  • in the Edit new action... dialog that appears type New Folder into the 'action' field
  • select Run an Opus function (not supported in Explorer) from the' type:' drop down field
  • in the function edit window that appears at the bottom paste this:

CreateFolder READAUTO=no

Wonderful....!!

Many thanks.

though isn't...

...what this whole create folder while copying/moving files thread was for :slight_smile:?[/quote]

Well, yes/no.

At times one may wish to first create a set of folders and then
do a find-action (or whatever) and copy/move files to specific folders.

Just an example: they other day I created a list of folders naming them
after a year, so 1950, 1951, 1952, 1953, etc. and copy files containing
these years into the predefined directories.
The copy/move - create folder - trick, it does not work in the find/lister mode.

Anyway, it is just handy to be able to create a folder name, not necessarily needing
to copy/move files into that folder rightaway. :wink:

Thanks for the help Steje!

brgds

anytime :slight_smile:

Hi Steje, I hate to bother you again... but I found out something peculiar, that I
cud reproduce anytime.

Say you have file xyz in whatever folder on partition D.
You want to move that to new to be created folder on partition E.
You rmb-drag that to the folder on E: (the folder is blue, i.e. the
pointer is definitely there), this 'Move' window pops up, it says:
E:\folder\folder
[ empty box where you fill in the new foldername ]
drop it there...

what happens is that a new folder is created as a subfolder
under the folder where the file came from.

so:
D:\folder\folder\filename.ext

want to move filename.ext to:
E:\folder\folder[newfolder] (path shows up in the popup window)

but the new folder is created as a subfolder on d:
D:\folder\folder[newfolder]\filename.ext

weird eh...

it's a bit difficult to explain, but i hope you understand the problem?

This move-copy trick only works within the same partition?

brgds

Only with the same partitions? Nope...

It sounds like you're using {s} in the drop command instead of {d}. Just so you know, I use 4 Copy CreateFolder commands:

2 on the RMB drop menu:
Copy to new folder
dopusrt /cmd Copy TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to COPY items to...|{d}}"

Move to new folder
dopusrt /cmd Copy MOVE TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to MOVE items to...|{d}}"

The difference between the two is naturally that one copies, the other moves... but they both use {d} which means create the folder in the destination folder (drop target = destination).

I also use 2 other commands bound to the following hotkeys:
<Ctrl + Insert>
Copy to new folder
dopusrt /cmd Copy TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to COPY items to...|{s}}"

<Alt + Insert>
Move to new folder
dopusrt /cmd Copy MOVE TO HERE CREATEFOLDER "{dlgstring|Specify folder-name to MOVE items to...|{s}}"

These also do Copy or Move, with the difference from the commands above being the use of {s} instead of {d}. This is for when I am working just with the keyboard and want to copy or move files to a new folder inside the current/source folder.