Ping From ASP Page

Hello all
I need the ASP page to prompt for the parameter in a text box, then the user would type the IP Address click a button for submit. The results need to be return to the same page;

<<Please include all code>>

Thank you all,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you can use the wscript shell command... you have to instantiate the object and then run the following command

ping > c:\filename.txt

please note that your IUSR_Machinename acct has permissions to write file to the folder location i.e. in the example c:\filename.txt

after running the command the ouput of the ping is stored in the filename.txt and now using Scripting.FileSystemObject you can open the text file and then write the content to the user's browser and then delete the file from the system.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saqib KhanSenior DeveloperCommented:
nito8300Author Commented:
I tried the option at, it didn't work; it asked me to run this: regsvr32 aspping.dll  I did but now I can't delete the aspping.dll file - it tells me the file is in use.  Do you know how to get rid of it???

I also tried the third link - from DynuCOM - that seems to work - thanks.
nito8300Author Commented:
Nevermind I got it.  I went to regedit and deleted the key.  - worked for me
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.