Page 1 of 1

Powershell arguments

Posted: Mon Nov 11, 2024 3:23 pm
by lah@modulex.com
Hi,

I am new to Powershell and arguments in Execute Command

I have a powershell script which saves a .txt file like this:
# Path to the output file
$outputPath = "C:\Test\Braille\output.txt"

I would like the script to save with dynamic filenames, named after the incoming file:
$outputPath = "C:\Test\Braille\[Job.NameProper].txt"

Can someone show me what my argument line should look like to send this information to my script

My current argument line only contains this:
-Nologo -WindowStyle hidden -executionpolicy bypass -file "C:\Scripts\duxbury.ps1"

Best Regards
Lars

Re: Powershell arguments

Posted: Mon Nov 11, 2024 3:43 pm
by magnussandstrom
Hi Lars, maybe this app will help you out: https://www.enfocus.com/en/appstore/pro ... and-friend

Re: Powershell arguments

Posted: Mon Nov 11, 2024 3:49 pm
by sander