Would Python make a good substitute for the Windows command-line/batch scripts?

后端 未结 12 874
醉酒成梦
醉酒成梦 2021-01-30 07:21

I\'ve got some experience with Bash, which I don\'t mind, but now that I\'m doing a lot of Windows development I\'m needing to do basic stuff/write basic scripts using the Wind

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 07:51

    @BKB definitely has a valid concern. Here's a couple links you'll want to check if you run into any issues that can't be solved with the standard library:

    • Pywin32 is a package for working with low-level win32 APIs (advanced file system modifications, COM interfaces, etc.)
    • Tim Golden's Python page: he maintains a WMI wrapper package that builds off of Pywin32, but be sure to also check out his "Win32 How Do I" page for details on how to accomplish typical Windows tasks in Python.

提交回复
热议问题