Announcement

Collapse
No announcement yet.

PB/DLL 2.0 (16-bit) How to detect running from UNC (non-mapped) drive?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PB/DLL 2.0 (16-bit) How to detect running from UNC (non-mapped) drive?

    Hi folks,

    Does anyone know how I can detect if a PB/DLL 2.0 EXE was launched from a UNC drive? On my Win2K system, executing a 16-bit EXE from a network drive results in CURDIR$ showing "I:\WINNT\TEMP", but the app was launched directly from "\\server\misc\noname.exe".

    I found a PB/DOS solution (see my postings in the PB/DOS forum), so now I'm left to urgently find a PB/DLL 2.0 solution.

    Any ideas folks?

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    #2
    Could not try it yet but : GetModuleFileName() ??

    ------------------
    [email protected]
    hellobasic

    Comment


      #3
      Brilliant! Thanks!

      Now why didn't I think of that? (other than the fact that it was about 2am when I needed a solution! )



      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment


        #4

        Blugghhhh!

        Lance;

        I thought you were the master

        Ahh haa Ha ha! (in evil grin mode!)

        ------------------
        Kev G Peel
        KGP Software, Bridgwater, UK.
        www.go.to/kgpsoftware
        kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎