Running a console app from a c# gui
-
Can this be done? I have a need to use a console application in the background with a c# gui feeding commands and reading output from it. similar, but not limited to something like executing ping, feeding it the url or ip, then reading the responses. Any help would be appreciated.
______________________ Mr Griffin, eleventy billion is not a number...:wtf:
-
Can this be done? I have a need to use a console application in the background with a c# gui feeding commands and reading output from it. similar, but not limited to something like executing ping, feeding it the url or ip, then reading the responses. Any help would be appreciated.
______________________ Mr Griffin, eleventy billion is not a number...:wtf:
Can you be more specific on what is going on in the background? We run console apps from web pages at my new job so I know it can be done. (Unless I have some weird definition of a console application.)
I have a blog for those with a sense of humor. The codeword is "scuttlebutt." http://craptasticnation.blogspot.com/[^]
-
Can you be more specific on what is going on in the background? We run console apps from web pages at my new job so I know it can be done. (Unless I have some weird definition of a console application.)
I have a blog for those with a sense of humor. The codeword is "scuttlebutt." http://craptasticnation.blogspot.com/[^]
-
ideally, i would run psftp (putty sftp) in the background, feed it connection info and a "get" command and communicate the feedback to the gui app.
______________________ Mr Griffin, eleventy billion is not a number...:wtf:
I'm not real familiar with psftp, but if no one else answers I'll try to do some research at home tonight based on what I know. Sorry I couldn't be more helpful out the gate.
I have a blog for those with a sense of humor. The codeword is "scuttlebutt." http://craptasticnation.blogspot.com/[^]
-
Can this be done? I have a need to use a console application in the background with a c# gui feeding commands and reading output from it. similar, but not limited to something like executing ping, feeding it the url or ip, then reading the responses. Any help would be appreciated.
______________________ Mr Griffin, eleventy billion is not a number...:wtf:
Use the Process class and redirect the standard output and standard input streams. I have done it several times. It can be a PITA the way some exes deliver output compared to unix style, unfortunately.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway