>>>>> "Tim" == Tim Roberts <[EMAIL PROTECTED]> writes:
>> ...And here's the diskpart line: >> >> subprocess.call(r'diskpart /s \\%s\someFolder\change_g.txt' % >> pdcName) Tim> In my own personal opinion, there's absolutely nothing wrong Tim> with this. That's what the tool is there for, after all. Yes, Tim> it would probably be possible for you to dig up the disk manager Tim> APIs you need to do the same thing programmatically, but because Tim> their use is obscure, they probably aren't going to be exposed Tim> in the standard PyWin32 modules, and then you have the added Tim> burden of error handling. I agree. If you do want to use an API rather than a subprocess, WMI might serve. The biggest drawback of WMI is that the documentation is partly nonexistent and, when it does exist, is of very low quality. On the other hand, the Python WMI module is quite nice. paul _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32