Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Reth

.\ not working for current dir when using WinSCP.com

Thank you very much! Yep, filemask threw me off. :D – Works perfectly now! :)
martin

Re: .\ not working for current dir when using WinSCP.com

You are missing the source parameter of the get command.
https://winscp.net/eng/docs/scriptcommand_get
You are probably getting confused by seemingly having specified the source using -filemask. But that only further filters the source files.
As your filemask seems to be trivial, you can just do:
get G*V00 -latest .\

If you really wanted to filter the source somehow (e.g. apply the file mask recursively), you can just use * for the source:
get -filemask="G*V00" * -latest C:\Temp\latest.txt
Reth

.\ not working for current dir when using WinSCP.com

Also any other directory or directory + filename does not work, for example:
get -filemask="G*V00" -latest C:\Temp\latest.txt

Always raising the error:
The attributes for the file “C:\Temp\latest.txt” cannot be determined.
The file or directory “C:\Temp\latest.txt” does not exist.

Any idea on that?
Reth

.\ not working for current dir when using WinSCP.com

Hi,

when trying to download datasets from IBM Host via WinSCP.com .\ at the end for getting the file into the current directory does not work. It shows error:

The attributes for the file “.\” cannot be determined.
The file or directory “.\” does not exist.

I am using:
get -filemask="G*V00" -latest .\

for the download.
Any idea what could be wrong here? Or do I have to applied it somehow differently?

Thank you in advance and
Kind Regards