Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell command line variables

write-host "There are a total of $($args.count) arguments"
for ( $i = 0; $i -lt $args.count; $i++ ) {
    write-host "Argument  $i is $($args[$i])"
} 
Source by www.red-gate.com #
 
PREVIOUS NEXT
Tagged: #powershell #command #line #variables
ADD COMMENT
Topic
Name
3+6 =