Ok I think the last question. it works perfect in the IDE but get an error when I run it via windows.
Parm used.
test.exe -p1 2 -p2 “sample text”
same issue if I quote both parms test.exe -p1 "2" -p2 “sample text”
Got error
Exception calling “addseconds” with “1” arguments “value to add was out of range. Parameter name “value”
Code
Param (
$p1,
$p2
)
$form1_Load={
$p3 = "Application: " + $p2 + " Deployment"
$title = "AXA - " + $p2 + " Installation"
$label1.Text = $p3
$form1.Text = $title
$totalseconds = $p1 * 60
$script:StartTime = (Get-Date).AddSeconds($totalseconds)
thanks for all the help
Newbie form questions
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- ocsscott6969
- Posts: 48
- Last visit: Tue Dec 05, 2023 10:04 am
Re: Newbie form questions
Ill give that a shot just confused why it was working so perfect in the IDE command line vs windows after the compile. The IDE must be doing some magic data massage along the way