Command:Unpack folders with one step undoable

This Command has the adwantages below.
1.Can unpack selected folders perfectly and efficiently.
2.Can undo all the unpack operations just by one step.

Usage:

  1. Go into Customize mode (Settings > Customize Toolbars).

  2. Drag the "Unpack.dcf" user custom command file Unpack.dcf (5.7 KB) to the user custom command window as the image below:

    (In English, this is the Commands tab, and the User-defined Commands category within it, which you can drag custom commands into.)

    QQ截图20200505153056

  3. Drag the "UnpackFolders.dcf" file UnpackFolders.dcf (257 Bytes) to your toolbar to make a button which runs the new command.

  4. Click OK in the Customize dialog to save your changes.

  5. Enjoy it.

1 Like

What is meant by "Unpack" in this context?

The script seems to have a lot of different logic and functionality, which looks good, but it would help people who might want to use it to describe what it does in more detail.

A introduction for Unpack command in more detail

This is a introduction of it for more detail which had not posted yet due to my poor English.

Just as its name implies, Pack is to create folders which the selected files put into, while Unpack is to eliminate folders which is the inverse process.

There are functions, advantages and more about what it does of the command below.

  1. With the command Unpack MODE=unpack running, if you are in the nomal folder tabs, it will unpack folders just as what I posted above. It will automatically avoid bugs that normal command will go wrong when the selected folders to be unpacked has the same name as the items the selected folders contain. And, if you are in the file collection tabs, it will copy the sub items of the selected folders to desttab avoiding unpacking it.

  2. With the command Unpack MODE=view running, it will create a filecolletion to show the sub items of the folders. Except file collection itself, no any changes made to the actual files on disk in this mode.

Thanks for describing it in more detail.

It's still unclear exactly what pack and unpack do. Pack "creates folders", but which folders, and why? What is the aim?

Maybe some examples of what the command does would make things more clear. For example, "if you have these files and folders, then run pack, you get these results".

With my understanding of English I learned, maybe not that accurately,I use Pack just to represent the funtion which putting files into one or several new folders created at the same time. While Unpack is just amost the inverse process. If no bugs,maybe I would post the command Pack which is also writen before and find time to have a introduction in some detail if possible.

I have tried your both button but it's do nothing for me. Can you please tell us in detail how does the button works what is the aim? Please give us some example for understand.

You should Drag the file Unpack.dcf (5.7 KB) to the user custom command window first before you can enjoy it. All about the details I have posted on the first floor. You can have a look.

1 Like

Thanks Yunfei now I understand. This Screen Shot for the English user.
Usage:

  1. Go into Customize mode ( Settings > Customize Toolbars ).
  2. Drag the "Unpack.dcf" user custom command file Unpack.dcf (5.7 KB) to the user custom command window as the image below
  3. Drag the "UnpackFolders.dcf" file UnpackFolders.dcf (257 Bytes) to your toolbar to make a button which runs the new command.
  4. Click OK in the Customize dialog to save your changes.

What does unpack Mean?
Unpack mean Select One or Multiple targeted folder Then click on the Unpackfolder.dcf button. It will Move All the content (Files & Folders) to the 1 level UP & Leave your Targeted folder/folders as an empty folder. That's All.

Yes, you are right. And it supports not only one target folder but also several. You can also get more details and usage of the command from the previous floor.

1 Like

Thanks Yunfei for the script, It's very use full and have use it very carefully.