Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralError in searching Directories Pin
chanzeb31-Jan-08 2:18
chanzeb31-Jan-08 2:18 
GeneralRe: Error in searching Directories Pin
Justin Perez31-Jan-08 2:24
Justin Perez31-Jan-08 2:24 
QuestionHow can I change the windows service name during setup? Pin
astanton197831-Jan-08 1:52
astanton197831-Jan-08 1:52 
AnswerRe: How can I change the windows service name during setup? Pin
PIEBALDconsult31-Jan-08 5:07
mvePIEBALDconsult31-Jan-08 5:07 
QuestionHow to send parameter to another program? Pin
Affan Toor31-Jan-08 1:52
Affan Toor31-Jan-08 1:52 
GeneralRe: How to send parameter to another program? Pin
Anthony Mushrow31-Jan-08 2:12
professionalAnthony Mushrow31-Jan-08 2:12 
GeneralRe: How to send parameter to another program? Pin
Giorgi Dalakishvili31-Jan-08 2:15
mentorGiorgi Dalakishvili31-Jan-08 2:15 
GeneralRe: How to send parameter to another program? Pin
Justin Perez31-Jan-08 2:31
Justin Perez31-Jan-08 2:31 
You'll have to find out if SQL Server can take a paramater at run-time, and do something with it. I'd assume that it can, but if it doesn't you can't do it, obviously. You'll have to find the paramater switches, such as "netstat -o" or something like that. If you find whether or not they are supported, and find the paramater switch you want to use. Something like this would do what you want:

Process cmdLineProcess = new Process();

cmdLineProcess.StartInfo.FileName = strFile;
cmdLineProcess.StartInfo.Arguments = strArgs;
cmdLineProcess.StartInfo.UseShellExecute = false;
cmdLineProcess.StartInfo.CreateNoWindow = true;
cmdLineProcess.StartInfo.RedirectStandardOutput = true;
cmdLineProcess.StartInfo.RedirectStandardError = true;

cmdLineProcess.Start()


Let us know what you find out, I'd be interested to know if SQL supports that. I'm guessing it does, so good luck. Post a link to what you find! Smile | :)

I'm going to become rich when I create a device that allows me to punch people in the face over the internet.

"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer

GeneralRe: How to send parameter to another program? Pin
Pete O'Hanlon31-Jan-08 2:59
mvePete O'Hanlon31-Jan-08 2:59 
JokeRe: How to send parameter to another program? Pin
Justin Perez31-Jan-08 3:04
Justin Perez31-Jan-08 3:04 
GeneralRe: How to send parameter to another program? Pin
KarstenK31-Jan-08 4:05
mveKarstenK31-Jan-08 4:05 
Generalresize rectangle [modified] Pin
Try31-Jan-08 1:24
Try31-Jan-08 1:24 
GeneralRe: resize rectangle Pin
Anthony Mushrow31-Jan-08 2:15
professionalAnthony Mushrow31-Jan-08 2:15 
GeneralRe: resize rectangle Pin
Try31-Jan-08 2:22
Try31-Jan-08 2:22 
GeneralRe: resize rectangle Pin
Justin Perez31-Jan-08 2:46
Justin Perez31-Jan-08 2:46 
GeneralInvoking extension methods asynchronously Pin
Nenad Panić31-Jan-08 1:10
Nenad Panić31-Jan-08 1:10 
GeneralRe: Invoking extension methods asynchronously Pin
Roger Alsing31-Jan-08 1:21
Roger Alsing31-Jan-08 1:21 
GeneralRe: Invoking extension methods asynchronously Pin
Nenad Panić31-Jan-08 1:39
Nenad Panić31-Jan-08 1:39 
GeneralRe: Invoking extension methods asynchronously Pin
PIEBALDconsult31-Jan-08 5:13
mvePIEBALDconsult31-Jan-08 5:13 
Generalcreating deployment exe file on the fly Pin
samy10031-Jan-08 1:07
samy10031-Jan-08 1:07 
GeneralGetting todays date Pin
Gareth H30-Jan-08 22:53
Gareth H30-Jan-08 22:53 
GeneralRe: Getting todays date Pin
Ed.Poore30-Jan-08 22:58
Ed.Poore30-Jan-08 22:58 
GeneralRe: Getting todays date Pin
Colin Angus Mackay30-Jan-08 23:21
Colin Angus Mackay30-Jan-08 23:21 
GeneralRe: Getting todays date Pin
Ed.Poore31-Jan-08 0:08
Ed.Poore31-Jan-08 0:08 
GeneralRe: Getting todays date Pin
Colin Angus Mackay31-Jan-08 6:47
Colin Angus Mackay31-Jan-08 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.