batch script to VB

Posted on 2004-11-05
Last Modified: 2010-05-02
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



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

Question by:CMILLER
    LVL 7

    Accepted Solution

    in vb:

    Shell(command) will execute any exe...

    so u cud do stuff like:

    'main fn

    sub main()

    Dim PATHTOFIXES as String

    Shell(PATHTOFIXES & "\kb822150 -Z -Q")
    Shell(PATHTOFIXES & "\kb823559 -Z -Q")
    Shell(PATHTOFIXES & "\kb833330 -Z -Q")
    Shell(PATHTOFIXES & "\kb833987 -Z -Q")
    Shell(PATHTOFIXES & "\kb840987 -Z -Q")
    Shell(PATHTOFIXES & "\qchain.exe")
    end sub

    LVL 7

    Expert Comment

    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 the button click event

    Author Comment

    what software would I need to create this form
    LVL 16

    Expert Comment

    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.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now