Why the hell do you use <datea ...> when this is not about getting a date for a selected item?
If no item is selected this would produce: <datea yymmdd> (no, it isn't resolved to anything!)
Why (even more) do you use gettoken to assign it to a variable?
This could lead to a "...\<datea" result and < is not permitted in file / folder names in Windows.
Why (...) do you mathematically add a string + the result of an expression?
And why do you leave out the closing } after the if expression?
Code: Select all
$dir = "c:\Data\Journal\<date yymmdd>";
text $dir . ": " . exists($dir);
if (exists($dir) == 0) { new($dir, "dir"); }
goto $dir;