_OpenFile Dialog in same folder as exe
#4
Only one 32-bit long integer variable is necessary:

Code: (Select All)
Function ExePath$
    Dim As Long t1
    t1 = _InStrRev(Command$(0), "\")
    if t1 = 0 then
        t1 = _InStrRev(Command$(0), "/")
    end if        
    ExePath$ = Left$(Command$(0), t1 - 1)
End Function
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 mnrvovrfc - 12-04-2022, 11:36 PM



Users browsing this thread: 3 Guest(s)