Make Directory From Filename problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wanted to make folders from the filename and came across this app:

http://members.chello.at/otmar.pilgerstorfer/opsoftware/optools/opmdff/

For some reason, though, it gives a shortened version of the filename and
folder name.

How do I get it do give a full name for the folder.

Is there an alternative application out there that will do the trick?

Trebordean
---------------------------POST VIA--------------------------------
news://nntp.xusenet.com http://www.xusenet.com
===================================================================
 
I wanted to make folders from the filename [...]
How do I get it do give a full name for the folder.

Is there an alternative application out there that will do the trick?

If your OS is Win2000 or Win XP you can simply execute:

CMD.EXE /C for %i in ("*.*") do md "%~ni" -> Dir from file name
CMD.EXE /C for %i in ("*.*") do md "%~xi" -> Dir from extension
CMD.EXE /C for %i in ("*.*") do md 123\"%~nxi" -> Dir from name+extension

Please note the 123\ from the last example. It is necessary to create
the folders within another directory because you can't have a dir and
a file with exactly the same name in one directory. The same applies
with the first example if your file name is for example 'readme', i.e.
has no extension.

For more switches (full path / date / ...) execute 'help for' on the
CMD command prompt.

HTH.
BeAr
 
Back
Top