|
-
Dec 10th, 2003, 09:10 AM
#14
Fanatic Member
Not exactly the easiest thing to do.. I tried something similar before when i was trying to make a bittorrent download manager... You could look for an api to remove the titlebar from the window or something like that, but I've found all this messing around with setparent, and other api's is kind of an unreliable way of making things...
instead, maybe try looking at this from a different perspective? How about emulating your own console? by this i mean, just put a textbox down and run the commands in a console behind the scenes, and put the results in the textbox..
I don't know exactly how to, but i believe there is some way to get into a command line window and get the contents in there... you may want to look around for that...
alternatively i think there is some way to 'bounce' the results from a command line that you shell into a text file... IO Redirect i think it may be referred to as... Basically it consists of adding an extra parameter to the command line... so you could shell this:
"netstat -n > C:\NetstatResults.txt"
That should print out the results into the specified file.. it works here, just tested when i'm in the cmd... so you should be able to get it working as shelling a new process...
Just some options to consider Good luck!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|