Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_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: 25 Guest(s)