Page 1 of 1
Copy the path of "new folder"
Posted: 03 Jul 2018 02:25
by bababarghi
Hi all,
Can I have a script to copy the path of the last NEW FOLDER created by user?
I want this script to be running all the times i.e. whenever I create a new folder, the path of it should be copied into clipboard. Is it possible?
Regards
bababarghi
Re: Copy the path of "new folder"
Posted: 03 Jul 2018 03:38
by jupe
This is one way of doing it, I don't know if it will suit you exactly though.
If you want the whole path:
Code: Select all
copytext new(input("Folder Name", , "NewFolder"), "dir");
or if you just want the folder name:
Code: Select all
copytext gpc(new(input("Folder Name", , "NewFolder"), "dir"), "file");
you would have to use it each time you want to create a folder, it wouldn't work if you created a folder via other means (like context menu etc), you could also assign it a shortcut key via UDC.
https://www.xyplorer.com/highlights.php#udc
Re: Copy the path of "new folder"
Posted: 03 Jul 2018 04:04
by bababarghi
jupe wrote:This is one way of doing it, I don't know if it will suit you exactly though.
If you want the whole path:
Code: Select all
copytext new(input("Folder Name", , "NewFolder"), "dir");
or if you just want the folder name:
Code: Select all
copytext gpc(new(input("Folder Name", , "NewFolder"), "dir"), "file");
you would have to use it each time you want to create a folder, it wouldn't work if you created a folder via other means (like context menu etc), you could also assign it a shortcut key via UDC.
https://www.xyplorer.com/highlights.php#udc
Perfect ! That was all I needed.
