> > python.exe test.py "\"abc def\" 123" > > import sys > commandLine = "".join(sys.argv[1:]) > > print commandLine > > gives: > > "abc def" 123
With the surrounding quotes you actually only need: commandLine = sys.argv[1] -- http://mail.python.org/mailman/listinfo/python-list