Make Directory From Filename problem

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
===================================================================
 
B

B. R. 'BeAr' Ederson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top