Need a script to move selected files to specific folders

Discuss and share scripts and script files...
Post Reply
perseid
Posts: 7
Joined: 25 Mar 2012 06:41

Need a script to move selected files to specific folders

Post by perseid »

Hi, say I select with XYplorer a bunch of files in a certain location and when pressing the "a" keystroke it will move those files to the c:\art\ folder, when pressing the "h" keystroke it will move those files to the c:\history\ folder, and so on. What would be a suitable script for this? Thanks

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Need a script to move selected files to specific folders

Post by highend »

Code: Select all

	$SelectedItems = get("SelectedItemsPathNames", "|");
	moveto "c:\art", $SelectedItems;
Save that as a script, duplicate it, and change your path.

Menu - User - Manage Commands...

Left pane: Load script file
Right pane: New, fill in all parameters and assign your shortcut...
One of my scripts helped you out? Please donate via Paypal

perseid
Posts: 7
Joined: 25 Mar 2012 06:41

Re: Need a script to move selected files to specific folders

Post by perseid »

Thanks highend, your script and instructions worked flawlessly. Regards.

Post Reply