Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Ok, so I've found that on other drive, I get the same behavior as you. It turned out that there's a volume setting that affects this.
See Windows wildcards with files having more than 3 characters extensions
(I've posted my own answer there too).

So either change the volume settings.
Or you can fix it by using a file mask filter:
put -filemask=*.xls "C:\Users\OSVAdmin\Documents\OSV Template\*" /

The filemask in -filemask is evaluated by WinSCP, what is independent to the volume settings. While the mask in the source parameter is evaluated by the Windows, what is affected by the volume settings.
Robot_1X

I just sent an email to you with "Put *.xls Also Uploads .xlsM File" as the subject.

Thank you for the help so far.
martin

Strange. I've tried the same command as you with the same files, and only xls files are transferred.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Robot_1X

Thank you for responding. Here is the log:
martin

Re: Put *.xls Also Uploads .xlsM File

I cannot reproduce the problem.

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

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. 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 can mark the attachment as private.
Robot_1X

Put *.xls Also Uploads .xlsM File

put "C:\Users\OSVAdmin\Documents\OSV Template\"*.xls /

This line uploads my .xls files just fine, but it also uploads the .xlsm file that resides in the OSV Template folder. Unfortunately, I cannot just move the .xlsm file to a different folder because an Excel spreadsheet I use for work needs it in this folder.

Does anyone have any suggestions on how I can prevent the .xlsm file from being uploaded?