Powershell arguments
Posted: Mon Nov 11, 2024 3:23 pm
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
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