> And, is that APPDATA snippet above correct? Are the environment keys > actually > named with %-% surrounding them? No, that's just if you want to expand them say, say in echo. PATH, HOMEPATH etc (without %) are used with os.environ. Nick