12-05-2022, 12:14 AM
From the good ol' days of "Must I optimize everything you do!" or Variable? We don't need no stinkin' variable!
Just sayin'
Pete
Code: (Select All)
PRINT ExePath$
FUNCTION ExePath$
IF _INSTRREV(COMMAND$(0), "\") THEN
ExePath$ = LEFT$(COMMAND$(0), _INSTRREV(COMMAND$(0), "\") - 1)
ELSE
ExePath$ = LEFT$(COMMAND$(0), _INSTRREV(COMMAND$(0), "/") - 1)
END IF
END FUNCTION
Just sayin'
Pete
If eggs are brain food, Biden takes his scrambled.