Link to home
Start Free TrialLog in
Avatar of Chris Miller
Chris MillerFlag for United States of America

asked on

batch script to VB

I have a batch file, I would like to have a gui that would execute this, and a way for me to update

any suggestions

@echo

setlocal

set PATHTOFIXES=\\arhots02\scripts$\qchain\patches

%PATHTOFIXES%\kb822150 -Z -Q
%PATHTOFIXES%\kb823559 -Z -Q
%PATHTOFIXES%\kb833330 -Z -Q
%PATHTOFIXES%\kb833987 -Z -Q
%PATHTOFIXES%\kb840987 -Z -Q
%PATHTOFIXES%\qchain.exe

-Chris
ASKER CERTIFIED SOLUTION
Avatar of _agj_
_agj_

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 _agj_
_agj_

for the gui stuff, just create a form....add a button...
and execute this Shell command in the click event...

or if u want to change the command that is executed, add a textbox

and do a Shell(Textbox1.Text) or so...in the button click event
Avatar of Chris Miller

ASKER

what software would I need to create this form
Erm... Visual Basic...  ;)

No, seriously, you can't create forms in a VBS -- you may be able to do it with some VBScript in an HTML page, in which case, you would use the HTML form controls.

But for pure VB, you'd need VB.

HTH

J.