Creating folders from filename

I think Albator's solution will work (I didn't test it - but he knows well)... But just so you know, you can [u]also[/u] do this quite easily with a simple hotkey or button that uses the Copy MOVE command, and not worry about regular expressions and the rename command. Here's the code for the button:

<?xml version="1.0"?>
<button display="both" icon_size="large" label_pos="right">
	<label>Move to new Folder</label>
	<tip>Move to new Folder</tip>
	<icon1>#move</icon1>
	<function type="normal">
		<instruction>Copy MOVE HERE CREATEFOLDER {f|noext}</instruction>
	</function>
</button>

If you need to know what to do with the code above, check out the Sticky Topic: How to add buttons from this forum to your toolbars. It's quite easy to create new toolbar buttons this way...

1 Like