A question about creat folders

Dear all,
I have a question about creat folder.
a folder cotain many files(about 1000 files), now i want to creat a sub-folder base the file name. and then move the file into the folder.
for example:

folder
|
+--file1.txt
|
+--file2.txt
.......

to be
folder
|
+--file1
| |
| +--file1.txt
|
+--file2
|
+--files2.txt

Can Do do this?
If can How to do it?

Thanksssssssss
Fankoo

FanKoo:

Check out this thread that I started not 24 hours ago.

[url]Moving multiple files based on file name]

It deals with what you're looking for. Apparently you and I needed the same type of thing at almost the same time. :slight_smile:

--chriscrutch

What FanKoo wants is a bit easier since all of the details are already part of the filename. (Your radio frequency stuff required some mapping from the frequency to the name of the channel.)

To move files into new folders with the same name as the files you just need an MS-DOS Batch Function type of button which runs this:

runmode hide
mkdir {file$|noext}
move {file$} {file$|noext}

Here's the full button for pasting onto your toolbar:

<?xml version="1.0"?> <button display="both" effect="gray"> <label>Files into Folders</label> <tip>Move files into new folders with the same name</tip> <icon1>48</icon1> <function type="batch"> <instruction>runmode hide</instruction> <instruction>mkdir {file$|noext}</instruction> <instruction>move {file$} {file$|noext}</instruction> </function> </button>

Thanks. I guess I jumped the gun a bit.

--chriscrutch

Dear nudel,
Thank you very much,I love you so much!!~~ :smiley: :smiley:

:blush:

You're welcome. :slight_smile: