Solved  - run a batch file from page and pass paramters/ or ping from

Posted on 2011-05-11
Last Modified: 2012-05-11
I have a page that I need to pass parameters to a batch file and run periodically...


can I run a ping command from my page and capture the results?
Question by:GlobaLevel
    LVL 7

    Expert Comment

    Here is an example of how to do it in C#.

    Should be pretty easy to transpose it into as the class libraries are pretty much the same.
    LVL 25

    Accepted Solution


            Dim consoleApp As New Process
            With consoleApp
                .StartInfo.Arguments = ""
                .StartInfo.UseShellExecute = False
                .StartInfo.RedirectStandardOutput = True
                .StartInfo.FileName = "ping.exe"
            End With

            Dim output As String = consoleApp.StandardOutput.ReadToEnd()

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now