_OpenFile Dialog in same folder as exe
#6
I know, I know, for fun I should have....

Code: (Select All)
PRINT ExePath$

FUNCTION ExePath$
    IF _INSTRREV(COMMAND$(0), "\") THEN
        ExePath$ = LEFT$(COMMAND$(0), ABS(_INSTRREV(COMMAND$(0), "\")) - ABS(1))
    ELSE
        ExePath$ = LEFT$(COMMAND$(0), ABS(_INSTRREV(COMMAND$(0), "/")) - ABS(1))
    END IF
END FUNCTION

Big Grin Big Grin Big Grin

Pete
If eggs are brain food, Biden takes his scrambled.
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:16 AM



Users browsing this thread: 8 Guest(s)