hmmm, don't think I would ever rely on %WINDIR% to tell me anything guaranteed about the OS... I personally like the @DOS idea the best.