I need a (very) simple script...
I need a (very) simple script...
Hello you all brilliant programmers
I would like a script which would select all the files in the current pane and move them one folder up
thanks for your help !
I would like a script which would select all the files in the current pane and move them one folder up
thanks for your help !
Re: I need a (very) simple script...
Code: Select all
sel a; #1056;
Code: Select all
sel f; #1056;
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 3358
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: I need a (very) simple script...
There is the option to right-click > Move up if you prefer that over script.
Re: I need a (very) simple script...
Hi there, What would you use to move only folders? Cheers.
Windows 10 Pro 22H2
Re: I need a (very) simple script...
Code: Select all
sel f; sel i; #1056;
One of my scripts helped you out? Please donate via Paypal
Re: I need a (very) simple script...
Sorry for being late to thank you all for your help !
Re: I need a (very) simple script...
I see this is an old thread. But maybe someone could help me add to this script the ability to then delete the empty folder leftover from moving all the files up?
Thanks!
Thanks!
Re: I need a (very) simple script...
Code: Select all
$path = <curpath>;
$parent = regexreplace($path, "(.*(?=\\))(.*)", "$1");
sel a; #1056; goto $parent; delete 1, 0, $path;
One of my scripts helped you out? Please donate via Paypal
Re: I need a (very) simple script...
Great script, thank you.
May I ask, how would you only move selected files up and then delete the folder please.
Thank you
May I ask, how would you only move selected files up and then delete the folder please.
Thank you
Re: I need a (very) simple script...
What does
Try it out!
and then you can answer that question yourself...
#1056;
do?Try it out!
and then you can answer that question yourself...
One of my scripts helped you out? Please donate via Paypal
Re: I need a (very) simple script...
Thank you. Ok I see that you select and use #1056 to move them up, but the code you supplied doesn't do that. But then you changed it considerably from
sel a; #1056;
to: $path = <curpath>; $parent = regexreplace($path, "(.*(?=\\))(.*)", "$1"); sel a; #1056; goto $parent; delete 1, 0, $path;
.So I was lost as to how to do both but with only selected files.
Using
sel a; #1056;
doesn't require you to select any files and in fact, even when selected the selection is ignored and all files are moved.EDIT: Alright I see that
sel a;
selects all files. So I need to remove that? Ok, smarty! That worked, Thanks.