Python Forum
Python library for win32 console commands - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python library for win32 console commands (/thread-34717.html)



Python library for win32 console commands - eldiener - Aug-24-2021

I am a knowledgeable Python programmer. I want to convert my Wiindows .bat files to Pythin scripts. Is there any Python library which implements the major win32 console commands in Python ?


RE: Python library for win32 console commands - Yoriz - Aug-24-2021

Did you see this one
https://pypi.org/project/pywin32/


RE: Python library for win32 console commands - eldiener - Aug-24-2021

Within pywin32 there is no support for a direct translation of win32 console commands into Python that I can see.


RE: Python library for win32 console commands - bowlofred - Aug-24-2021

Can you give an example of what you're looking for? I don't know of anything that will auto-translate a batch script, but you can probably convert it manually.