[Tutor] Convert my .bat and .vbs to .py
mabystry at verizon.net
Thu Feb 15 19:21:12 CET 2007
Wow! Got a lot of responses to my post. Thanks everyone. After reading all of them, I may have to
learn by example after all. I'm going to try Alan Gauld's tutorials first.
Alan Gauld wrote the following on 2/15/2007 12:39 PM:
> "Mark Bystry" <mabystry at verizon.net> wrote
>> My goal is to convert about a dozen or so DOS/Windows batch
>> scripts(.bat) and vbscripts(.vbs) that I use on a day-to-day basis
>> to python
> You might want to look at my Using the OS topic in my tutorial
> It covers basic file manipulation and starting external programs
>> that they can be run on either my windows or linux workstations.
> That might be harder than you think due to differences in paths etc.
> Also some external commands will be different, and ones with the
> same name take different arguments/orders or args etc
> If you write them in pure Python you should be OK but if you
> just run sequences of OS commands (typical of batch files)
> then you might run into problems.
>> The first things that I want to learn is how to do basic stuff
>> like copying, moving, and deleting files around from folder to
> Try my tutor topic.
More information about the Tutor