Code: Select all
:: echo getpathcomponent(, "path").'\'.getpathcomponent(, "file");Code: Select all
:: echo getpathcomponent(, "path").'\'.getpathcomponent(, "file");Code: Select all
::echo "<curitem>";Code: Select all
::echo <curitem>;Code: Select all
:: echo get("SelectedItemsPathNames", "|", "a");Then also note that <curitem> only returns the currently selected AND focused item.aliteralmind wrote:Thanks. Only using a single file in this case.
Code: Select all
:: echo getpathcomponent(, "path").'\'.getpathcomponent(, "file");Code: Select all
::echo getpathcomponent(, "ext");Code: Select all
$IsFile = report ("{Dir False|True|Drive}",1);
If ($IsFile=="True") {msg "It is a file"}else{ msg "no file"};aliteralmind wrote:Thanks. Only using a single file in this case.aliteralmind wrote:If nothing is selected, then I want the directory.
Code: Select all
:: echo (<selitems> =='')?<curpath>:getpathcomponent(, "file");Code: Select all
$isDir = (exists($origPath) == 2);
if($isDir) {
echo "dir!";
}