I installed Python 2.5 on a windows server and I copied a script called "check_esxi_hardware.py" to "C:\Python25". I can run the script just fine when called from DOS command line when I type it in manually but when I copy the exact same command from notepad into command window, it errors out. I tried running the script though a text cleaner called "stripmail" it revealed a space between two characters. I deleted the space and when I then copied it into command line, it worked. This techniqe does not work however if I copy to a batch file and run it which is the goal.
The Command is:
"c:\python25\check_esxi_hardware.py" –H esxhost –U root –P mypasswd –V hp