On Mon, Jun 29, 2009 at 1:24 PM, hyou<hyo...@hotmail.com> wrote: > I’m trying to write a script that simply execute a command line like: > > C:\...(path)..\Devenv solution /build “Debug|Win32” > > > > However, in Python the “|” symbol is reserved thus I just can’t make the > command line above working once I added the “|” sign in it. > > How can I put the “original” vertical bar in a string?
You can put a vertical bar in a string; In [1]: s = "Debug|Win32" In [2]: print s Debug|Win32 Can you show us the code you tried? My guess is that you are having trouble getting the quoting correct. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor