Best way to test for host operating system?



I am running under Windows at the present time and have found that I need to
change code from linux implementation.

How do I test to see which O/S I am running under?

TIA,

Larry Woods


.



Relevant Pages

  • Re: XP services do allow null password
    ... >>service applications. ... This system is expected to work on a captive network ... >>on Windows XP with a null password. ... >> application and we would prefer not to change code to create a password as ...
    (microsoft.public.windowsxp.security_admin)
  • Re: [9fans] new compilers
    ... when you change code you're supposed to add more code. ... Aren't you paying attention to the way software development apparently ... productivity to the managers) if software is your business (which I ... stuff in the past (Though I must say Windows 2000 and even XP Pro were ...
    (comp.os.plan9)
  • Re: Problem with subprocess module on Windows with open file in append mode
    ... import subprocess ... When I run it on Windows, however, the file log.tmp gets ... implementation-defined whether the file position indicator is ... The Linux implementation choose to move the file pointer to the end in such cases, the Windows one choose to always keep it at the start. ...
    (comp.lang.python)
  • Re: boot camp beta and MacBook Pro
    ... You can still find sites that demand IE on Windows ... ... Has anyone tried installing a LINUX implementation on a dual core MAC ...
    (comp.sys.mac.misc)
  • Re: How can I make use of the USB-port from Java ?
    ... How about compiling and running the linux implementation over Cygwin? ... I cannot find any implemented Java API's for USB to use on the Windows ...
    (comp.lang.java.programmer)