in reply to Re: how to detect whether script is being run on Windows at runtime?
in thread how to detect whether script is being run on Windows at runtime?

Except of course for every operating system based on winnt, which uses c:/winnt/
  • Comment on Re: Re: how to detect whether script is being run on Windows at runtime?

Replies are listed 'Best First'.
Re: Re: Re: how to detect whether script is being run on Windows at runtime?
by raptnor2 (Beadle) on May 11, 2004 at 01:33 UTC
    Could you just check for the existence of "C:\"? How many OS's start with a letter, specifically the thrid letter in the alphabet (this is a real question)?

    Cheers,

    John

    Update:

    Apparrently you get '--'ed around here for asking what can be preceived as stupid questions. From this and BUU's comments I'll take the answer to my first question as no.

    Update 2:

    I was talking about the second question at work today with a friend. He said that OS/2 and one of the mainframe operating systems also used letters to denote drives.

      That would, of course, fail if your windows installation had no drive labeled 'C'.