Freeware for adding folder to several hundreds files.

  • Thread starter Thread starter teddyli
  • Start date Start date
T

teddyli

hi,

i have several hundreds files and want to add each file into individual
folder in the file's name.
it's extremely time consuming for me to do this task by opening one new
folder and then copy and paste each file's name to be name of this folder
and then put the file into this folder.
is there any software which could allow me to do this task in a simpler way
?

any suggestion is welcome and thanks in advance.
regards,
teddy.
 
You need a little MS-DOS style scripting. Check around for examples of .bat
or .cmd scripting that make use of "DO" and "SHIFT" commands in particular.
 
hi,

i have several hundreds files and want to add each file into
individual folder in the file's name.
it's extremely time consuming for me to do this task by opening one
new folder and then copy and paste each file's name to be name of this
folder and then put the file into this folder.
is there any software which could allow me to do this task in a
simpler way ?

any suggestion is welcome and thanks in advance.
regards,
teddy.

If no one else has a better suggestion, the combination of Rip-Zip and
Unziplify will do what you want. I just tested it. Use Rip-Zip to convert
each file into an individual zip, named for the original file. Then
Unziplify them, setting the option to create a separate folder for each
zipfile, using original filename to name each folder.

Rip-Zip
http://harmware.com/rztutorial.htm
(There's a shareware product named Rip-Zip, this isn't it)

Unziplify
http://www.webmasterfree.com/unzip.html
filename unziplify12.exe
1.54 MB
 
i have several hundreds files and want to add each file into individual
folder in the file's name.
it's extremely time consuming for me to do this task by opening one new
folder and then copy and paste each file's name to be name of this folder
and then put the file into this folder.

As you can't have a directory and a file with exactly the same name within
one directory you have (first) to copy to another directory. Create a batch
file (or cmd file) with the following lines:

for %%i in ("*.*") do md "dummy\%%i"
for %%i in ("*.*") do copy "%%i" "dummy\%%i\%%i"

Replace 'dummy' with a path fitting your requirements. In Win9x the folder
'dummy' must exist. (The md command in Win9x can only create one directory
level per call.) Maybe you add a (first) line:

md dummy

If I recall correctly, this batch will only create and copy short file
names in Win9x. Win2k and WinXP will do better. In these systems you
additionally can replace %%i behind the 'do'-statement with %~ni to refer
to the name part of the file or %~xi to get only the extension. For
more switches (full path / date / ...) execute 'help for' on the CMD
command prompt.

If you need more detailed information you should ask here (depending of
your OS):

alt.msdos.batch
alt.msdos.batch.nt


HTH.
BeAr
 
Back
Top