1.

Solve : Make folders out of filenames?

Answer»

Am trying to use the for loop to make folders, the trick is that I need to name them the same as the file
i.e. file= name1.xsl and i need folder=name1
Any help would be great,
there's an option in this (from for /? ):
Code: [Select] %~I - EXPANDS %I REMOVING any surrounding quotes (")
%~fI - expands %I to a fully qualified path name
%~dI - expands %I to a drive letter only
%~pI - expands %I to a path only
%~nI - expands %I to a file name only
%~xI - expands %I to a file extension only
%~sI - expanded path contains SHORT names only
%~aI - expands %I to file attributes of file
%~tI - expands %I to date/time of file
%~zI - expands %I to size of file
%~$PATH:I - searches the directories LISTED in the PATH
that you can use to GET the filename without extension. then you can use it to set your folder name



Discussion

No Comment Found