1
Script / Re: Multi-script for create folders and subfolders from target windows
« on: November 05, 2024, 20:56:41 »
Try this:
It is assumed that the source folder has at least 4 levels (x:\%LETTER%\%NAME%\CM4000)
Code: [Select]
@var $current_dir = GetSourcePath();
@var $path_parts = StrSplit( $current_dir, '\' );
@var $parts_count = arrayCount( $path_parts );
@var $i = $parts_count - 3;
@var $path_tail = "";
for( $i; $i < $parts_count; $i++ )
{
$path_tail = $path_tail ^ $path_parts[$i];
}
MakeDir( $current_dir ^ 'A16' ^ $path_tail, "LOCAL,RECURSIVE" );
MakeDir( $current_dir ^ 'AGFT' ^ $path_tail, "LOCAL,RECURSIVE" );
It is assumed that the source folder has at least 4 levels (x:\%LETTER%\%NAME%\CM4000)