Wildcard Character Using WinSCP.com
I have a simple script that needs to be automated. This script runs perfectly when I replace the * (wildcard character) with the actual filename. But throws a "No such file" error when using the *
Here's the script I'm currently using:
I call this from a windows batch script with this command in it:
I searched for any similar existing issues on the forums, but I couldn't find one. I'm stuck. Please help.
Here's the script I'm currently using:
option batch abort option confirm off open sftp://MyUserName:MyPassword@URL:PortNumber -hostkey="HostkeyHere" stat /dirName/*.enc get /dirName/*.enc c:\Users\MyUserName\Desktop\ close exit
I call this from a windows batch script with this command in it:
winscp.com /ini=nul /script=C:\Users\MyUserName\Desktop\tstSftp\TestSFTP.txt /xmllog=C:\Users\MyUserName\Desktop\tstSftp\logSFTPTest.xml /loglevel=2
I searched for any similar existing issues on the forums, but I couldn't find one. I'm stuck. Please help.