NEVERMIND ! Here is the solution... # ---------------------------------------------------------------- if (os.path.isdir("C:\\MyNewFolder") == 0): os.mkdir("C:\\MyNewFolder") # ----------------------------------------------------------------- thanks