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
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:
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>