Announcement

Collapse
No announcement yet.

PBDOS 3.5 ENVIRON$

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

  • Guest's Avatar
    Guest replied
    If you are just looking to see if Windows is loaded, you can do
    this with the following code.

    FUNCTION isWindowsLoaded%()
    IF ENVIRON$("windir")="" then
    isWindowsLoaded%=%FALSE
    END IF
    IF ENVIRON$("windir")<>"" then
    isWindowsLoaded%=%TRUE
    END IF
    END FUNCTION

    You can also do something like a function to locate windows.
    It's pretty obvious how to do it, so I will not explain.

    Amos


    ------------------
    Amos

    Leave a comment:


  • Lance Edmonds
    replied
    Go to any DOS command prompt and type SET and press Enter... all of the environment strings will be listed.


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

    Leave a comment:


  • Lee Bergeron
    started a topic PBDOS 3.5 ENVIRON$

    PBDOS 3.5 ENVIRON$

    Can anyone give me a listing of all the parameters for ENVIRON$. I am especially interested in "OS" with regards to Windows.
Working...
X