How to use Program Command shape with arguments ?

Document created by anton_serbanescu Employee on Feb 16, 2015Last modified by chris_stevens on May 19, 2016
Version 4Show Document
  • View in full screen mode

Issue:

Have a windows batch file that does the following:

rename <dir>\%1 <dir>\%2_%1

When I use the Program Command shape with the location of the batch file and followed by question mark for the parameters:

C:\<dir1>\rename.bat ? ?

...it fails with the following:

rename <dir>? <dir>\?_? syntax error

 

What is missing ?

On a windows system, the question mark does not replace a parameter. The following syntax will take place of a parameter:

C:\<dir1>\<dir2>\rename.bat {1} {2}

In order to specify an expected number of arguments for the command line, you need to surround each argument number by curly braces.

1 person found this helpful

Attachments

    Outcomes