Here is the directory/file structure on the Unix box. I am trying to GET the files called "myfile.xml". There can be files similar, like "myfile.xml.20100228", but I don't want any files like that. ONLY myfile.xml. Here is my file/directory structure:
[no files in this directory, only subdirectories]
myfile.xml.20101113 [don't want this file]
My code results in WinSCP not finding any files in /usr/web/config/ then it quits without recursing through the subdirectories.
Here is my code:
WinSCP.exe MyServer /log=C:\MyScript.log /ini=C:\Admin\WinSCP.ini /console /command "option batch continue" "option confirm off" "get /usr/web/config/myfile.xml; /usr/web/config/*/myfile.xml C:\data\MyServer\" "close" "exit"
On the destination C: drive, if my myfile.xml is found in /usr/web/config/abc, then I would like WinSCP to CREATE that directory (if it doesn't already exist) on the C: drive under C:\data\MyServer, and pull down the myfile.xml and place it in the "abc" directory. Then continue on to the next directory "def", and so on....