Important alert: (current site time 7/15/2013 8:32:40 AM EDT)
 

winzip icon

a dosbox output reader class

Email
Submitted on: 6/13/2002 10:03:04 AM
By: Klaus Schlotmann  
Level: Intermediate
User Rating: By 2 Users
Compatibility: VB.NET
Views: 11677
(About the author)
 
     Hi, this code contains an own coded class with which you can read the output from a dos-box! you can type an order in a textbox (let's say: ping 1.2.3.4) and click at the command-button. then the output from this command is typed in the second multiline textbox! much fun ;-)
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
// for :a dosbox output reader class
//**************************************
-
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

11/28/2002 8:15:42 PM

the code is excellent except for one MAJOR PROBLEM. When you export the project (release), the .exe cannot access console. It works well only when you test it from within VB's workspace. Try exporting it (release) and running it from there...it wont ping ;(
(If this comment was disrespectful, please report it.)

 
12/17/2002 1:32:27 PM

Thanks just what I was looking for. Also to answe the previous auther, I built the app and tested it and it was fine, so make sure you're building the application correctly.
(If this comment was disrespectful, please report it.)

 
12/18/2002 7:33:52 AM

HI,

I ran the program in VS but received this error:
An unhandled exception of type 'System.Security.SecurityException' occurred in WindowsApplication7.exe

Additional information: System.Security.Permissions.SecurityPermission.
At: cp.pipe(TextBox1.Text, TextBox2)
Do you know why?
(If this comment was disrespectful, please report it.)

 
1/5/2004 5:04:24 AM

nice.. sure beats my dirty call the shell, output to a txt file and then read into a text box! a lot quicker as well!

thanks
(If this comment was disrespectful, please report it.)

 
2/18/2004 4:30:39 PMThe Bob

Well that was interesting.
It seems that it works fine for certain commands like ping but it's not so keen on commands like dir and telnet.

Maybe that's just me though.
(If this comment was disrespectful, please report it.)

 
10/21/2004 11:35:34 AMNDNO44

Very interesting. Nice code. Alternately you can find it at http://www.mentalis.org/apilist/CreatePipe.shtml#
(If this comment was disrespectful, please report it.)

 
12/6/2005 11:54:16 AM

Interesting, but on the output of certain things I get gibberish - Pinging ? with 32 bytes of data:
Reply from 172.16.0.1: bytes=32 time=51ms TTL=255
Reply from 172.16.0.1: bytes=32 time=24ms TTL=255
Reply from 172.16.0.1: bytes=32 time=27ms TTL=255
Reply from 172.16.0.1: bytes=32 time=24ms TTL=255
Ping statistics for ??:

Tracing route to over a maximum of 30 hops
1 26 ms 47 ms 24 ms ????
Trace complete.

Trace always returns ???? for the host.

Any ideas?
(If this comment was disrespectful, please report it.)

 
2/17/2009 7:07:57 AMIzak

I receive memory protected error, can any one assist?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.