to create folder and copy downloaded files (from Unix)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
vzslnq
Posts: 1
Joined: 24 Jul 2009 03:15
Location: Malaysia

to create folder and copy downloaded files (from Unix)

#1 Post by vzslnq » 24 Jul 2009 03:30

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 :)

Post Reply