Script to rename to Parent folder

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mrbosco
Posts: 125
Joined: 03 Sep 2011 09:40

Script to rename to Parent folder

Post by mrbosco »

My file is

c:\ABC\DEF\GHI\Test.txt

I want to change it to GHI.txt

I'm confused between Rename and RenameItem and all the various options.
Can someone please provide a quick solution?

jupe
Posts: 2791
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Script to rename to Parent folder

Post by jupe »

rename , '<prop Directory>';

Post Reply