[Tutor] Seek suggestions for script for looking up extensions usingC:\>assoc

Richard D. Moores rdmoores at gmail.com
Fri Aug 6 17:28:35 CEST 2010


On Fri, Aug 6, 2010 at 07:56,  <davidheiserca at gmail.com> wrote:
>
> You wouldn't gain much with a Pyton script. You can specify the extension
> with "assoc".
>
> Try "assoc .zip".
>
> But if you want to try it anyway, look at the "popen2" module (depreciated)
> or the "subprocess" module to extract the data and assign it to a variable
> that you can parse any way you like.

Thanks! I think I will try it anyway, and am already reading the doc
for the subprocess module.

(Someone -- not this Tutoree -- is going to remind you not to top post.)

Dick


More information about the Tutor mailing list