I'm trying to build log path and lcd variables in my WinSCP script and I don't know the proper syntax to make it work.
How can I put the variables into the script correctly? This is an example of what I'm trying to do.
$logPath = "c:\LogPath"
$lcdPath = "c:\lcdPath"
& "C:\Program Files (x86)\WinSCP\WinSCP.com" `
/log = $logPath /ini=nul `
/command `
"open ftpSite -hostkey=`"`"hostKey`"`" -rawsettings FSProtocol=2" `
"cd ftpFilePath" `
$lcdPath `
"get * -filemask=*>=1D" `
"exit"