Link to home
Start Free TrialLog in
Avatar of JohnnyD74
JohnnyD74

asked on

Convert .bat file to .vbs format

Hello Experts,

I need to convert the following .bat file to a .vbs format

 
"c:\python25\python.exe" "c:\python25\check_esxi_hardware.py" -H 192.168.0.15 -U root -P file:"c:\python25\host_pass.txt" -V auto

Open in new window


Could some please give me a hand with this? I am a novice at scripting :)
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JohnnyD74
JohnnyD74

ASKER

Thanks Bill!

It worked perfectly except for an error I got suggesting I needed to remove the parenthesis from line 5. I did so and it is working perfectly now!

Thanks Again,

John
Ah yes, I often forget the subtle difference when calling a function using a return code, versus not.  Glad you sorted that out, and this was useful.

~bp