Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
GeneralRe: XML comments header Pin
led mike7-Mar-08 9:22
led mike7-Mar-08 9:22 
GeneralRe: XML comments header Pin
Not Active7-Mar-08 10:04
mentorNot Active7-Mar-08 10:04 
GeneralRe: XML comments header Pin
led mike7-Mar-08 10:44
led mike7-Mar-08 10:44 
GeneralRe: XML comments header Pin
Kevin McFarlane7-Mar-08 12:15
Kevin McFarlane7-Mar-08 12:15 
GeneralRe: XML comments header Pin
Not Active7-Mar-08 15:15
mentorNot Active7-Mar-08 15:15 
QuestionContext Sensitive Help Help? Pin
UTRocketFan7-Mar-08 7:59
UTRocketFan7-Mar-08 7:59 
GeneralRe: Context Sensitive Help Help? Pin
Giorgi Dalakishvili7-Mar-08 8:35
mentorGiorgi Dalakishvili7-Mar-08 8:35 
Questionexecute jar file in c# Pin
CreativeR867-Mar-08 7:01
CreativeR867-Mar-08 7:01 
first i want to say that this site is the best in the world, i always find what i want in it
it's great,thanks...



i'm facing a problem in opening jar file(by execute batch file which contains java -jar command) in c#
here is the code:

string filepath = Server.MapPath("test.bat");<br />
<br />
<br />
        ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");<br />
        psi.UseShellExecute = false;<br />
        psi.RedirectStandardOutput = true;<br />
        psi.RedirectStandardInput = true;<br />
        psi.RedirectStandardError = true;<br />
<br />
<br />
        Process proc = Process.Start(psi);<br />
        StreamReader sr = File.OpenText(filepath);<br />
        StreamWriter sw = proc.StandardInput;<br />
        StreamReader sre = proc.StandardError;<br />
<br />
        while (sr.Peek() != -1)<br />
        {<br />
<br />
            sw.WriteLine(sr.ReadLine() + Environment.NewLine);<br />
        }<br />
<br />
        TextBox1.Text = sre.ReadLine();<br />
        sr.Close();<br />
        proc.Close();<br />
        sw.Close();<br />
<br />


the following message appears
Unable to access jarfile *.jar

what do you think the problem is ???
GeneralRe: execute jar file in c# Pin
Jimmanuel7-Mar-08 9:27
Jimmanuel7-Mar-08 9:27 
GeneralRe: execute jar file in c# Pin
Luc Pattyn7-Mar-08 9:28
sitebuilderLuc Pattyn7-Mar-08 9:28 
GeneralRe: execute jar file in c# Pin
CreativeR867-Mar-08 21:24
CreativeR867-Mar-08 21:24 
GeneralRe: execute jar file in c# Pin
Luc Pattyn8-Mar-08 1:31
sitebuilderLuc Pattyn8-Mar-08 1:31 
GeneralRe: execute jar file in c# Pin
CreativeR868-Mar-08 1:44
CreativeR868-Mar-08 1:44 
GeneralRe: execute jar file in c# Pin
Luc Pattyn8-Mar-08 2:58
sitebuilderLuc Pattyn8-Mar-08 2:58 
Generaldetermining transfer rate Pin
damianrda7-Mar-08 6:26
damianrda7-Mar-08 6:26 
GeneralRe: determining transfer rate Pin
snorkie7-Mar-08 9:56
professionalsnorkie7-Mar-08 9:56 
GeneralDatagridview insert and delete problems concurrency error Pin
Member 39465827-Mar-08 6:10
Member 39465827-Mar-08 6:10 
QuestionSCardTransmit C# error Pin
fuffoso7-Mar-08 4:28
fuffoso7-Mar-08 4:28 
NewsHelp me to encrypt text file into an image Pin
thucbv7-Mar-08 2:58
thucbv7-Mar-08 2:58 
GeneralRe: Help me to encrypt text file into an image Pin
DaveyM697-Mar-08 3:14
professionalDaveyM697-Mar-08 3:14 
AnswerRe: Help me to encrypt text file into an image Pin
thucbv7-Mar-08 4:48
thucbv7-Mar-08 4:48 
GeneralRe: Help me to encrypt text file into an image Pin
Russell Jones7-Mar-08 3:57
Russell Jones7-Mar-08 3:57 
GeneralRe: Help me to encrypt text file into an image Pin
CPallini7-Mar-08 5:17
mveCPallini7-Mar-08 5:17 
QuestionHow to identify bookmarks and hyperlinks in a pdf file Pin
Member 42489617-Mar-08 2:49
Member 42489617-Mar-08 2:49 
GeneralRe: How to identify bookmarks and hyperlinks in a pdf file Pin
Justin Perez7-Mar-08 4:10
Justin Perez7-Mar-08 4:10 

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.