Execute script using exernal parameter
My script is:
test-sync-ftps.ps1 contains:
I'd like to pass hostname, username and password dynamically.
I tried to use
How can I solve it?
Thanks
C:\tools\winscp-5.21.5\winscp.com /script=C:\projects\test-sync-ftps.ps1
I'd like to pass hostname, username and password dynamically.
I tried to use
/parameter
attribute but it does not work:
C:\tools\winscp-5.21.5\winscp.com /script=C:\projects\test-sync-ftps.ps1 /parameter xxxxxx yyyyyy zzz.zzz.zzz.zzz
open ftp://%1%:%2%@%3%
Thanks