Both sides previous revisionPrevious revisionNext revision | Previous revision |
transformations:runprogram [2021/06/21 01:59] – [Examples] craigt | transformations:runprogram [2021/07/19 01:59] (current) – [Examples] craigt |
---|
\\ | \\ |
=====Examples===== | =====Examples===== |
**EXAMPLE 1:** Running the external 7-Zip program to unzip a file or files. | **Example 1:** Running the external 7-Zip program to unzip a file or files. |
| |
**Action parameters** | **Action parameters:** |
> Application "C:\Program Files (x86)\7-Zip\7z.exe" (the full path and name of program executable) | > Application "C:\Program Files (x86)\7-Zip\7z.exe" (the full path and name of program executable) |
> Working directory is "C:\Zipped files" (the folder the application will find the file(s) to be unzipped) | > Working directory is "C:\Zipped files" (the folder the application will find the file(s) to be unzipped) |
{{ https://easymorph.com/images/learn/unzip-file.png }} | {{ https://easymorph.com/images/learn/unzip-file.png }} |
| |
\\ | \\ \\ |
**EXAMPLE 2:** Run the Windows shell command to copy a file. | **Example 2:** Run the Windows shell command to copy a file. |
| |
**Action parameters** | **Action parameters:** |
> Application is left blank (the Windows shell will run the command below) | > Application is left blank (the Windows shell will run the command below) |
> Calculated argument is the shell command: '' 'copy /Y "' & {Old location} & '" "' & {New location} & '"' '' (note {Old location} and {New location} are EasyMorph parameters) | > Calculated argument is the shell command: '' 'copy /Y "' & {Old location} & '" "' & {New location} & '"' '' (note {Old location} and {New location} are EasyMorph parameters) |
| |
{{ https://easymorph.com/images/learn/file-copy.png }} | {{ https://easymorph.com/images/learn/file-copy.png }} |
| |
| \\ |
| ====Community examples==== |
| * [[https://community.easymorph.com/t//1398/1|How to obtain a list of all files recursively]] ([[https://community.easymorph.com/uploads/short-url/p5eGkU5ftaJpBXTfGbLxLte2VPX.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Table 1//; Action position: //1//) |
| * [[https://community.easymorph.com/t//1755/9|EasyMorph 4.3 : Tableau Hyper Addon logs]] ([[https://community.easymorph.com/uploads/short-url/22W0a67rOyb81dAD8zNmISfuMDK.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Convert DSET file to Hyper file//;\\ Action position: //4//) |
| * [[https://community.easymorph.com/t//2653/1|Extracting all projects published in the Community and their actions]] ([[https://community.easymorph.com/uploads/short-url/mrnJQUJJL8Do1T8ioicyzE1VgmK.morph|Project]]; Module: //Main loop//; Group: //Group 1//; Table: //Actions//; Action position: //6//) |
| |
\\ | \\ |