Wildcards not Working for Download

Wildcards not Working for Download

I'm developing a Powershell script using WinSCP Version 5.1.3 (Build 2881) and I'm having trouble retreiving files when I use wildcards in the file name.

There are two files I'm trying to retreive. One is named something like Monthly_Values_20130201.zip.pgp and the other is Weekly_Values_20130201.zip.pgp. When I use the full file names I am able to retreive the files without any problem. When I use Monthly_Values_*.zip.pgp and Weekly_Values_*.zip.pgp I get:

Re: Wildcards not Working for Download

Can you please post sample of your code along with full session log file (see Session.SessionLogPath). Thanks.

Please attach a full log file showing the problem (using the latest version of WinSCP).

You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

I was not able to get the script to work at all with version 5.1.4. I downloed the the portable 5.1.4 and the .net assembly and copied the basic powershell script from the script exammple page and I get:

The version of F:\Scripting\WinSCP\winscp.exe (5.1.4.0) does not match version of this assembly F:\Scripting\WinSCP\WinSCP.dll (5.2.0.0). You can disable this check using Session.DisableVersionCheck (not recommended).

Please let me know if you need anything else or if I didn't provide everything you need. Thank you for your help.