Announcement

Collapse
No announcement yet.

Command line parameters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Command line parameters

    Hello,

    I would like to know if it is possible to use the DOS substitution syntax in the command line parameters used within a script file.
    For example, I have this script:
    load "%1" "%2"
    expand all
    file-report layout:side-by-side options:line-numbers &
    title: "%3" &
    output-to: ".\html\%~n3".html &
    output-options:html-color "%1\%3" "%2\%3"

    In a native DOS batch file, the %~n3 would strip the extension off the filename, thus giving you the filename value. So, I'm wondering if this could be used within a BC script file.

    Any thoughts?

    Thanks,
    Derek

  • #2
    Hello,

    We do not have this functionality in script, but you could pass a 4th parameter in the command line and refer to it as %4. Then, in a bat file you could perform any type of 'preprocessing' on the parameter before passing it into and calling the script.
    Aaron P Scooter Software

    Comment

    Working...
    X