Announcement

Collapse
No announcement yet.

PBDOS 3.5 ENVIRON$

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

  • 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.

  • #2
    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>
    Lance
    mailto:[email protected]

    Comment


    • #3
      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

      Comment

      Working...
      X