There's a PowerShell
script named itunesForward.ps1
that makes the iTunes fast forward 30 seconds:
$iTunes = New-Object -ComObject iTunes.Application
if ($iTunes.playerstate -eq 1)
{
$iTunes.PlayerPosition = $iTunes.PlayerPosition + 30
}
It is executed with prompt line command:
powershell.exe itunesForward.ps1
Is it possible to pass an argument from the command line and have it applied in the script instead of hardcoded 30 seconds value?
Create a powershell script with the following code in the file.
This creates a script with a path parameter. It will list all symboliclinks within the path provided as well as the specified target of the symbolic link.
Tested as working:
Call it with
let Powershell analyze and decide the data type
Internally uses a 'Variant' for this...
and generally does a good job...
or if you need to pass multiple parameters
You can use also
$args
variable (that's like position parameters):then it can be call like: