How to convert Batch files to Python files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Coding kid
    New Member
    • Jun 2015
    • 1

    How to convert Batch files to Python files?

    I would really appreciate it if somebody could give me a link to a video or website that would tell me how to convert Batch files to Python files.
    Thanks Al
  • computerfox
    Contributor
    • Mar 2010
    • 276

    #2
    Batch to Python? That's a bit of a step, but you'd basically be learning a new language. Are you doing a lot of file system changes or what is it that your scripts need to do?

    A great start would be to review the manual:


    Here would be some examples (I give you these to learn, not to copy/paste):


    Here are some more code samples:


    Python is pretty simple, but if you were using Batch, you should be looking into PowerShell. Are you sure it's not Bash?

    Comment

    Working...