Copy Files With Token Into Own Directory

June 1, 2012 at 11:35:12
Specs: Windows 7
Hello, all,

Is there a simple way to take a directory structure, scan it, and make a new directory structure based on filenames? Luckily, the files in the directory all have this structure:

something ; somethingelse.ext

I just want to create a new directory structure (with a different root directory) that stores files in directories based on what appears before the semi-colon.

Thank you, in advance.


See More: Copy Files With Token Into Own Directory

Report •


#1
June 1, 2012 at 12:15:00
Not sure if I completely understand your question, but robocopymight be helpful.

--
Andrew Leonard
BL Technical Services
IT Support for Small Businesses


Report •

#2
June 1, 2012 at 12:19:21
Ah, perhaps so, but I was just simply hoping for a native scripting solution that would take a directory tree with files such as:

A ; X.ext
B ; Y.ext
C ; Z.ext

and put them into a structure that looks like this:

C:\A\A ; X.ext
C:\B\B ; Y.ext
C:\C\C ; Z.ext

etc.


Report •

#3
June 1, 2012 at 16:20:31
Ah, perhaps so, but I was just simply hoping for a native scripting solution that would take a directory tree with files such as:

A ; X.ext
B ; Y.ext
C ; Z.ext

and put them into a structure that looks like this:

C:\A\A ; X.ext
C:\B\B ; Y.ext
C:\C\C ; Z.ext

etc.


Report •

Related Solutions


Ask Question