How do I created a folder with name of current file

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rfluskin
Posts: 1
Joined: 18 Mar 2026 09:57

How do I created a folder with name of current file

Post by rfluskin »

I need a script (activated by toolbar button) that will created a folder with the name of the current file (less extension). I have no experience with scripting, so please provide something I can just copy-pase using button editor. Thanks

highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How do I created a folder with name of current file

Post by highend »

new(<curbase>, "dir");?
One of my scripts helped you out? Please donate via Paypal

RalphM
Posts: 2086
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: How do I created a folder with name of current file

Post by RalphM »

If the next step is to move that file into the newly created folder, you might try right-dragging the file and select "Move here to new subfolder" from the ctx menu.
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

Post Reply