OK - another scarcely-believable noob question. I have again spent well over an hour searching every part of the Scripting Help, and every scripting post that mentions "rename", and I am still baffled. It just can't be this hard...
--> How do I rename the folder currently selected in the tree?
I have both the Tree and a Pane open. I have switched Focus to the Tree (T), where the current folder is highlighted. I want to rename the folder to "Junk". But nothing I can find will do this. Everything seems to work on the contents of a folder (in the Pane).
Maybe I could copy the existing name, go up one folder, and do some kind of search & replace - but surely there is an easier way?
Thanks for any help -
How to rename current folder?
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: How to rename current folder?
Assuming that when you select a folder in the Tree you automatically browse to it (that's not 100% given, I'm sure there's a way to override such behavior), this works
Code: Select all
rename, "Junk", , <curpath>;Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
Papoulka
- Posts: 455
- Joined: 13 Jul 2013 23:41
Re: How to rename current folder?
Thank you, Marco! That works fine for me. I don't think I'll have a problem with <curpath> unexpectedly changing, in my simple usage.
I'd suggest that this should be an example in the Help file entry for "rename".
I'd suggest that this should be an example in the Help file entry for "rename".
XYplorer Beta Club