And?it gives the parent path of selected folders
If you need to distinguish between files and folders, use a foreach loop...
And?it gives the parent path of selected folders
Code: Select all
gravity C:\games\gravity
space C:\games\space
Code: Select all
text regexreplace(<get "SelectedItemsPathNames" <crlf>>, "(^.*)\\(.*)", "$2 $1\$2");
Code: Select all
$folder = regexreplace(<get "SelectedItemsPathNames" <crlf>>, "(^.*)\\(.*)", "net share ""$2""=""$1\$2"" /GRANT:""%username%"",FULL");
echo $folder;
$batFile = "%TEMP%\~share.txt";
writefile($batFile, $folder);
Code: Select all
(^.*)\\(.*?)(?=\r?\n|$)