Not very solid, I'd say. In my case, NT lives in D:\nt40 / Svante In article <86du41$lv0$1 at gxsn.com>, matt at resonation.co.uk says... > try : > if os.environ['windir']=="C:\\winnt": > # do whatever > else: > .... > > >