Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running an exe Pin
Pete O'Hanlon22-Jan-13 6:51
mvePete O'Hanlon22-Jan-13 6:51 
GeneralRe: Running an exe Pin
PIEBALDconsult22-Jan-13 7:14
mvePIEBALDconsult22-Jan-13 7:14 
AnswerRe: Running an exe Pin
PIEBALDconsult22-Jan-13 6:15
mvePIEBALDconsult22-Jan-13 6:15 
SuggestionRe: Running an exe Pin
Richard MacCutchan22-Jan-13 6:34
mveRichard MacCutchan22-Jan-13 6:34 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 6:57
PozzaVecia22-Jan-13 6:57 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 7:04
professionalJibesh22-Jan-13 7:04 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 7:14
PozzaVecia22-Jan-13 7:14 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 7:34
professionalJibesh22-Jan-13 7:34 
If you run an child exe from other exe, the working directory of child exe will be same as that of parent. but you can force the working directory of the child to use its own by setting the working directory as below.

ProcessStartInfo start = new ProcessStartInfo();
start.FileName = @"childExepath\myquery.exe";
start.WorkingDirectory = @"childExepath\";
Process p = new Process();
p.StartInfo = start;
p.Start();
p.WaitForExit();

Jibesh V P

GeneralRe: Running an exe Pin
Richard MacCutchan22-Jan-13 7:15
mveRichard MacCutchan22-Jan-13 7:15 
AnswerRe: Running an exe Pin
jschell22-Jan-13 8:09
jschell22-Jan-13 8:09 
AnswerRe: Running an exe Pin
Joe Woodbury22-Jan-13 10:14
professionalJoe Woodbury22-Jan-13 10:14 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 10:50
PozzaVecia22-Jan-13 10:50 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 14:50
professionalJibesh22-Jan-13 14:50 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 18:55
PozzaVecia22-Jan-13 18:55 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 19:25
professionalJibesh22-Jan-13 19:25 
QuestionDrag items to Listview Pin
jenya722-Jan-13 4:01
jenya722-Jan-13 4:01 
AnswerRe: Drag items to Listview Pin
BobJanova22-Jan-13 22:49
BobJanova22-Jan-13 22:49 
QuestionHow to call a "Windows Form Application" in a "Windows Service"? Pin
DaKhucBuon22-Jan-13 1:40
DaKhucBuon22-Jan-13 1:40 
AnswerRe: How to call a "Windows Form Application" in a "Windows Service"? Pin
PIEBALDconsult22-Jan-13 2:21
mvePIEBALDconsult22-Jan-13 2:21 
AnswerRe: How to call a "Windows Form Application" in a "Windows Service"? Pin
Dave Kreskowiak22-Jan-13 2:27
mveDave Kreskowiak22-Jan-13 2:27 
AnswerMessage Removed Pin
22-Jan-13 3:34
professionalN_tro_P22-Jan-13 3:34 
GeneralRe: How to call a "Windows Form Application" in a "Windows Service"? Pin
DaKhucBuon22-Jan-13 13:56
DaKhucBuon22-Jan-13 13:56 
GeneralRe: How to call a "Windows Form Application" in a "Windows Service"? Pin
PIEBALDconsult22-Jan-13 15:50
mvePIEBALDconsult22-Jan-13 15:50 
AnswerRe: How to call a "Windows Form Application" in a "Windows Service"? Pin
DaKhucBuon23-Jan-13 15:59
DaKhucBuon23-Jan-13 15:59 
Question(solved) grab selected text from anywhere Pin
msickel21-Jan-13 23:34
msickel21-Jan-13 23:34 

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.