views:

56

answers:

1

Possible Duplicate:
Add/remove programs in Windows XP with Python script

I am a newbie in python and basically do windows sysadmin tasks and sometimes write batch script. However i am trying to learn python by implementing the scripts in windows tasks. The actual task i want to do is a follows: To remove acrobat reader or acrobat standard version and install acrobat professional. I also have to remove SAP client application from the machine and be able to run another SAP install.cmd file which then installs an updated version of SAP.could your or someone post me a more or less complete working script?

Thanks in advance – Everest

A: 

To call a function as if you had entered it on the command line, use subprocess.Popen. There are various scripting functions (copy, remove) in the os and shutil modules.

katrielalex