Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_OpenFile Dialog in same folder as exe
#5
From the good ol' days of "Must I optimize everything you do!" or Variable? We don't need no stinkin' variable!

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
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
_OpenFile Dialog in same folder as exe - by bplus - 12-04-2022, 08:28 PM
RE: _OpenFile Dialog in same folder as exe - by Pete - 12-05-2022, 12:14 AM



Users browsing this thread: 17 Guest(s)