import System def GetDrives(): return System.Environment.GetLogicalDrives() def getcwd(): return System.IO.Directory.GetCurrentDirectory() def chdir(path): return System.IO.Directory.SetCurrentDirectory(path) def mkdir(path): System.IO.Directory.CreateDirectory(path) def rmdir(path): System.IO.Directory.Delete(path,True) if __name__ == "__main__": drives = GetDrives() for d in drives: di = System.IO.DriveInfo(d) print(d, di.Name, di.IsReady) print(GetCwd())