Skip to main content
Answer

Executing commands via Files & processes

  • April 14, 2014
  • 4 replies
  • 45 views

Forum|alt.badge.img+4

I was curious if it's possible to add multiple lines of commands here? The box only shows a single text field rather than a multi-text field so I wasn't sure if I was to copy a script with multiple lines would run?

Thanks.

Best answer by alexjdale

Yep, you can separate commands with semicolons, basically treating them as line breaks.

4 replies

mpermann
Forum|alt.badge.img+22
  • Valued Contributor
  • April 14, 2014

I think you can separate commands in the box with a semicolon to run more than one.


Forum|alt.badge.img+17
  • Contributor
  • Answer
  • April 14, 2014

Yep, you can separate commands with semicolons, basically treating them as line breaks.


Forum|alt.badge.img+16
  • Contributor
  • April 14, 2014

I use the box to run multiple commands using he semicolon all the time. This allows a policy to work even when a distribution point is unavailable (and a script cannot be downloaded). If a script only has a few lines, this is my preferred way to run it. For long scripts, I use the traditional method of uploading a file (or now pasting directly into the web GUI).


Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 15, 2014

Excellent, thanks guys.