+ Reply to Thread
Results 1 to 3 of 3

.BAT file with Parameter in Excel

  1. #1
    Registered User
    Join Date
    06-13-2007
    Posts
    2

    .BAT file with Parameter in Excel

    hi!

    I am looking for a VBA (or anything!!! yes..i am very desperate) which will enable me to run a .BAT file with parameters from Excel.

    ie: if i have a .BAT file, which will ping a IP Address
    .BAT will look like

    @Echo off
    ping %1

    So, when i run from the command prompt, i could run as "filename.bat 192.168.0.10" -> which will ping the IP Address.

    I want to achieve this thru an Excel File. Ie : there will be IP address in a Colum, and as users click on that, the system shoud run the .bat file, by taking the IP address given.

    I even tried to call this as a hyper link, but was not able to pass the parameters.

    Could any one PLEASE.... help me ?

    -Ashly

  2. #2
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-13-2007
    Posts
    2

    Thank you!!!

    hi!

    Thank you!!
    One more question, insted of keying in the IP Address, can i make the system to read from a cell ?

    - Ashly A K

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1