Can't execute an external program !

patrick fox pfo at informactis.com
Wed Jun 14 09:05:31 EDT 2000


I am working with RTF files and I'd like my WORDPAD to appear once the
work is done.

I've tried this :

   > f = open('./var/fiche-concessionnaire.rtf', 'w')
  >  f.write(tpl.data)
  >  f.close()
   > commands.getoutput('c:\\windows\\write.exe
./var/fiche-concessionnaire.rtf')

It always reply "Command Unknown" even when I try to use the DIR
command.

Q: How can I get this working ?

Thanks.




More information about the Python-list mailing list