Wildcard use in scripts

Advertisement

apurva
Joined:
Posts:
4

Wildcard use in scripts

I am trying to get filename from different directories. To do that I am using the following command in my script

get "/abc/jkl/com?/stats" c:\logs\

Scenario is that there are folders by name com1, com2, com3 etc.. and I am interested only in the "stats" file in each directory.

The above command gives me
Error listing directory '/abc/jkl/com?'
.

I haven't even reached the second part of using Operation masks to store the several stats file as "stats.com1", "stats.com2" etc.

Using version 4.2.3 build 494

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Thanks

You can list the directories, parse it with some script to generate WinSCP script file for downloading specific files. See this example for similar task.

Reply with quote

Advertisement

You can post new topics in this forum