"Ernesto" wrote:
> A nice person from another thread helped me...
>
> a = 'disable "@USB\VID_0403&PID_6010&MI_00\7&15E4F68&1&'
> print a
> disable "@USB\VID_0403&PID_6010&MI_00&15E4F68&1&
>
> \7 is the ASCII bell so your args may be different from what you think.
>
>
> I thought the quote
A nice person from another thread helped me...
a = 'disable "@USB\VID_0403&PID_6010&MI_00\7&15E4F68&1&'
print a
disable "@USB\VID_0403&PID_6010&MI_00&15E4F68&1&
\7 is the ASCII bell so your args may be different from what you think.
I thought the quote method I have fixes this problem,
I'm trying to use Popen to do some command line work Windows XP style.
I have devcon.exe which I would use on a Windows command line like so:
devcon disable "@USB\VID_05E3&PID_0605\5&2CE74B9E&1&6"
Using subprocess.Popen, I have something like this:
subprocess.Popen([r"devcon.exe","disable",'"USB