popen[2-4] does not work with parameters inside quotes

From: Anders Dalvander (google_at_dalvander.com)
Date: 10/30/03


Date: 30 Oct 2003 12:07:40 -0800

os.popen[2-4] does not work with parameters inside quotes, nor do
os.popen. At least on Windows.

import os
cmd = '"c:\\command.exe" "parameter inside quotes"'
os.popen4(cmd)

Results in the following error message:

'c:\\command.exe" "parameter inside quotes' is not recognized as an
internal or external command,
operable program or batch file.

// Dalle



Relevant Pages

  • Re: insatll jar path problem.
    ... EXECUTE PROCEDURE sqlj.install_jar ... quotes, added sqlj. ... The above syntax works for me under similar setup (Windows XP, ... > This is the error message. ...
    (comp.databases.informix)
  • Re: insatll jar path problem.
    ... EXECUTE PROCEDURE sqlj.install_jar ... quotes, added sqlj. ... The above syntax works for me under similar setup (Windows XP, ... > This is the error message. ...
    (comp.databases.informix)
  • Re: AUTOEXEC.NT error message
    ... Good luck! ... > Start>Run and type in this without the quotes: ... >> AUTOEXEC.NT error message ... >> Windows XP SP2), what does it mean? ...
    (microsoft.public.windowsxp.basics)
  • Re: AUTOEXEC.NT error message
    ... Start>Run and type in this without the quotes: ... > AUTOEXEC.NT error message ... > Windows XP SP2), what does it mean? ... Fixed it with directions in this link - ...
    (microsoft.public.windowsxp.basics)
  • Re: Select Current Record for Report
    ... OK Thanks Chris. ... That took care of the error message. ... >in the Query design grid Access puts the quotes around any ... >>user selects an employee from this combo box, ...
    (microsoft.public.access.forms)