Page 1 of 1

to create folder and copy downloaded files (from Unix)

Posted: 24 Jul 2009 03:30
by vzslnq
Hi, i'm newbie in this forum.

I hv a script to mget (FTP) files from a remote unix server into windows machine.
The filename format is "YYYYMMDD_xxxxxx.txt"
(e.g: 20090724_test1.txt, 20090724_test2.txt, 20090724_test3.txt, etc)
My local directory is C:\ABC\ and I want to create a subfolder as C:\ABC\YYYYMMDD in here (e.g: C:\ABC\20090724).
How to create a script which can create a subfolder using the date taken from this ftp-downloaded file(s) as a string and copy all the downloaded files into it?
Hope all Sifu here can assist. Thanks :)