Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
GeneralRe: crystal report with dynamic columns? Pin
nelsonpaixao7-Nov-08 14:06
nelsonpaixao7-Nov-08 14:06 
QuestionContextSwitchDeadlock Pin
dec825-Nov-08 21:03
dec825-Nov-08 21:03 
AnswerRe: ContextSwitchDeadlock Pin
Nicholas Butler5-Nov-08 23:41
sitebuilderNicholas Butler5-Nov-08 23:41 
AnswerRe: ContextSwitchDeadlock Pin
DaveyM695-Nov-08 23:43
professionalDaveyM695-Nov-08 23:43 
QuestionFunction keys Pin
sram155-Nov-08 20:40
sram155-Nov-08 20:40 
AnswerRe: Function keys Pin
leppie5-Nov-08 22:38
leppie5-Nov-08 22:38 
AnswerCP IGNORE: Cross post three forums Pin
leckey6-Nov-08 10:06
leckey6-Nov-08 10:06 
QuestionProblem running a .bat file from a C# forms application Pin
Member 41835605-Nov-08 20:08
Member 41835605-Nov-08 20:08 
I have this code developed to run a bat file. the code is set to a buttonclick event......bat file is crating correctly ..when i double click on it it works fine..but the bat is not executing from the program..cant figure out what the reason..your help is appriciated..

string text = "compdld -d -i\"C:\\softpay\\ver22\\output\\cpac\\ads\\files\\softpayx.dld\" -w\"C:\\HSBMFC\" -momni-5150 -aHSBMFC -tTID01 -gl -fl";
            File.WriteAllText(@"C:\COMPDLD\a.bat", text);
            ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
            psi.FileName = @"C:\COMPDLD\a.bat";
            psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo = psi;
            p.EnableRaisingEvents = true;
            p.Start();

            while (!p.HasExited)
            {
                System.Threading.Thread.Sleep(1000);
            }
            if (p.ExitCode != 0)
            {
                //some error occurred
            }

AnswerRe: Problem running a .bat file from a C# forms application Pin
Franck Paquier5-Nov-08 20:54
Franck Paquier5-Nov-08 20:54 
GeneralI agree it looks like a working dir problem - specify the error that you get Pin
Natza Mitzi5-Nov-08 22:39
Natza Mitzi5-Nov-08 22:39 
GeneralRe: Problem running a .bat file from a C# forms application Pin
#realJSOP5-Nov-08 23:31
professional#realJSOP5-Nov-08 23:31 
QuestionCrystal report Pin
Maddie from Dartford5-Nov-08 19:27
Maddie from Dartford5-Nov-08 19:27 
Questionhow to create sequence no in richtextbox control in window application Pin
raj2313625-Nov-08 19:22
raj2313625-Nov-08 19:22 
Questiondotnet Pin
UjwalGwoda5-Nov-08 19:03
UjwalGwoda5-Nov-08 19:03 
AnswerRe: dotnet PinPopular
Ashfield5-Nov-08 21:19
Ashfield5-Nov-08 21:19 
QuestionCreating radiobutton dynamically Pin
B875-Nov-08 18:09
B875-Nov-08 18:09 
AnswerRe: Creating radiobutton dynamically Pin
Giorgi Dalakishvili5-Nov-08 19:30
mentorGiorgi Dalakishvili5-Nov-08 19:30 
GeneralRe: Creating radiobutton dynamically Pin
B875-Nov-08 21:34
B875-Nov-08 21:34 
GeneralRe: Creating radiobutton dynamically Pin
Giorgi Dalakishvili5-Nov-08 21:40
mentorGiorgi Dalakishvili5-Nov-08 21:40 
QuestionQuestion of Convert XML data to DataTable Pin
leejs4135-Nov-08 15:13
leejs4135-Nov-08 15:13 
Questionstring? Pin
dec825-Nov-08 14:27
dec825-Nov-08 14:27 
AnswerRe: string? Pin
PIEBALDconsult5-Nov-08 14:42
mvePIEBALDconsult5-Nov-08 14:42 
GeneralRe: string? Pin
dec825-Nov-08 14:51
dec825-Nov-08 14:51 
GeneralRe: string? Pin
User 66585-Nov-08 19:12
User 66585-Nov-08 19:12 
AnswerRe: string? Pin
V.5-Nov-08 21:20
professionalV.5-Nov-08 21:20 

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.