1
Script / Re: Create new folder with name of the selected files and move them to that folders?
« on: February 02, 2018, 18:59:08 »
Thank you very much, Mathias! I seem like you know thing or two about this great piece of software...
So here is my final script:
It does what I wanted, which is just awesome because I save a lot of time. But are there any improvements worth implement?
Thank you again!
So here is my final script:
Code: [Select]
@var $files_path = GetSourceSelectedPaths();
@var $source_path = GetSourcePath();
@var $slash = "\\";
@var $n;
@var $name;
@var $name_array[];
for( $n=0; $n < arrayCount($files_path); $n++ )
{
$name = PathGetNamePart($files_path[$n], 1);
arrayAdd($name_array, $name);
MakeDir($source_path ^ $name_array[$n], "NODIALOG,NEWQUEUE");
MoveFile($source_path ^ $name_array[$n] + $slash, $files_path[$n], "NODIALOG,NEWQUEUE");
}
It does what I wanted, which is just awesome because I save a lot of time. But are there any improvements worth implement?
Thank you again!