Okay, I'm going to inject some sanity here, a rare occurence for me. Panno, b32 is right: you need to create each nonexistent folder separately. In other words, CreateDir "C:\aaa" will work fine, because it creates a dir on the hard drive. However, CreateDir "C:\aaa\aaa" will NOT work unless your hard drive already contains a folder called "aaa". So yeah, any folders that don't already exist need to be created one at a time.