User Tools

Site Tools


transformations:runprogram

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
transformations:runprogram [2021/06/20 20:24] craigttransformations:runprogram [2021/07/17 23:42] – [Examples] craigt
Line 55: Line 55:
 \\ \\
 =====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)
-> Calculated argument ' e "' & {File name} & '" -y -aoa' (the argument string required by 7-Zip to decompress the file(s); note {File name} is an EasyMorph parameter)+> Calculated argument '' ' e "' & {File name} & '" -y -aoa' '' (the argument string required by 7-Zip to decompress the file(s); note {File name} is an EasyMorph parameter)
 > Halt if exit code is not 0 is checked (the workflow will stop with an error if 7-Zip does not complete correctly) > Halt if exit code is not 0 is checked (the workflow will stop with an error if 7-Zip does not complete correctly)
  
 {{  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)
 > Hard if exit code is not 0 is checked (the workflow will stop with an error if the copy command does not complete successfully) > Hard if exit code is not 0 is checked (the workflow will stop with an error if the copy command does not complete successfully)
  
 {{  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//)
  
 \\  \\ 
transformations/runprogram.txt · Last modified: 2021/07/19 01:59 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki