Rename & Move

Discuss and share scripts and script files...
Post Reply
ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Rename & Move

Post by ivan »

It's my first ever quite serious script!

It selects all the items in the current folder, renames them as the name of the folder, moves them up a level in the tree and deletes the now-empty folder.

Code: Select all

Set($cf,<curfolder>);
 Sel(a);
 Rename(bat,$cf);
 Focus(L);
 MoveTo("..");
 #523;
 SelFilter($cf, d, Name);
 Focus(L);
 #170;
I know it's not as hardcore as Jacky's updater, but at least I'm getting there :D

On a side note: I'd love for scripting to be applicable to a selection of folders so you select them and it applies to contents of each one. Also, it would be good for stepping to be applicable on a per-script basis rather than apply to all at the same time.
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

Post Reply