pexpect.spawn and pexpect.run() are not available on Windows, as they rely on Unix pseudoterminals
(ptys). Cross platform code must not use these.
Die Suche ergab 2 Treffer
- Montag 25. Juli 2016, 15:18
- Forum: Allgemeine Fragen
- Thema: Python Windows CMD
- Antworten: 6
- Zugriffe: 2105
Re: Python Windows CMD
- Montag 25. Juli 2016, 14:48
- Forum: Allgemeine Fragen
- Thema: Python Windows CMD
- Antworten: 6
- Zugriffe: 2105
Python Windows CMD
Hallo Leute. Stehe immer noch vor dem Problem, über Python Windows CMD-Befehle auszuführen, für die Admin-Rechte erforderlich sind. Hat hier jemand diesbezüglich Erfahrungen?
Mein Ansatz sah folgendermaßen aus:
import subprocess as sp
prog = sp.Popen(['runas', '/noprofile', '/user:Administrator ...
Mein Ansatz sah folgendermaßen aus:
import subprocess as sp
prog = sp.Popen(['runas', '/noprofile', '/user:Administrator ...
