Bill Janssen wrote: > Anyone know if the quote() function in the "pipes" module does the right > thing for cmd.exe pipes? >
No, it doesn't. It uses sh rules, which aren't the same. > If not, what is the right thing? Unfortunately, command line parsing in Windows is not centralized in the shell. To satisfy cmd.exe, you can safely surround each file name in double quotes. Whether the application knows how to handle that or not is up to the application (although most do it correctly). Remember that this is only necessary when passing names to the command shell. The Windows APIs don't want the quotes. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32