Home

indu_shreenath schrieb:
> Hey,
> I want to get the output of "DIR /AD /B" command to a varriable using
> python. How can I do this?

Using the subprocess-module.


However, I'm not sure what DIR /AD /B does - but there are many
functions in module os that might deliver what you want without invoking
an external command.

Diez

previous
next

a good website for softwares,movies and music etc.
Re: Submit Your Python Scripts
Re: An Editor that Skips to the End of a Def
Re: (no) fast boolean evaluation ? missing NOT
Re: dynamic_cast and typeid
Krwinka
Fundacja Avalon
Kidprotect
Niechciane i Zapomniane
Fundacja Sloneczko