This feature allows the user to copy content of a source folder and paste the content to a destination folder with single click on a button. The feature is able to keep track of multiple source and destination folders, and which version of the source folder that is currently in the destination folder.
This feature is only supported in PowerPoint.
Required plugin is located here:
...\SD.Installers\AlloyPlugins\RawPlugins\SkabelonDesign.FolderMove
Notice that the source folder(s) must contain a version.info
file. In this file, you define a unique value.
CMD
<Cmd case="SkabelonDesign.FolderMove:move-folders" source="X" destination="X"/>
Parameters
source
Define the path for the source folder. This must be located in Appdata/Roaming
. For instance, if the source folder is located in a folder called "Test", the path must be defined like the following:
source="%appdata%/Test/sourceFolder"
destination
Define the path for the destination folder. This must be located in Appdata/Roaming
. For instance, if the destination folder is located in a folder called "Test1", the path must be defined like the following:
source="%appdata%/Test1/destinationFolder"
Example of usage
The example below generates a dynamic menu with four buttons, of which two are visible at a time. The visibility is controlled by the parameter visible, where two buttons are visible if the content folder exists in the defined path, and the remaining buttons are visible if the content folder does not exist in the defined path.
The plugin copies the content of the source directory and paste it into a destination directory. The button that controls which folder is being copied into the destination folder changes appearance depending on which source directory that is currently in the destination directory.
<DynamicMenu label="Move folders">
<Button visible="SkabelonDesign.FolderMove:!%appdata%/movetest/source" label="Denmark">
<Cmd case="SkabelonDesign.FolderMove:move-folders" source="%appdata%/movetest/source" destination="%appdata%/movetest/destination"/>
</Button>
<Button visible="SkabelonDesign.FolderMove:%appdata%/movetest/Source" icon="WebControlCheckBox" label="Denmark">
<Cmd case="SkabelonDesign.FolderMove:move-folders" source="%appdata%/movetest/Source" destination="%appdata%/movetest/destination"/>
</Button>
<Button visible="SkabelonDesign.FolderMove:!%appdata%/movetest/source2" label="Germany">
<Cmd case="SkabelonDesign.FolderMove:move-folders" source="%appdata%/movetest/source2" destination="%appdata%/movetest/destination"/>
</Button>
<Button visible="SkabelonDesign.FolderMove:%appdata%/movetest/source2" icon="WebControlCheckBox"label="Germany">
<Cmd case="SkabelonDesign.FolderMove:move-folders" source="%appdata%/movetest/source2" destination="%appdata%/movetest/destination"/>
</Button>
</DynamicMenu>
Comments
0 comments
Article is closed for comments.