-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: sachingpatel
Message 2 in Discussion


I have the same problem.  The workaround i 
found is that you exe file should be noninteractive ie no user input should be 
required to run the application and application should be self 
terminating.  For example : 
 


Process Pr = new 
Process();
Pr.StartInfo.RedirectStandardOutput = true;
Pr.StartInfo.UseShellExecute = false;
Pr.StartInfo.CreateNoWindow = 
false;
Pr.StartInfo.FileName = @"net";
Pr.StartInfo.Arguments = "send 
KIGUR-LEN03W test message"; 
Pr.Start();
Response.Write( 
Pr.StandardOutput.ReadToEnd() ); 
Pr.WaitForExit();

Here Net.exe is self-terminating executable 
file.  You will be able to run self-terminating exe but cannot execute 
calc.exe with the same code from asp.net.

Sachin Patel

  ----- Original Message ----- 
  From: 
  mithunbabu 
  To: BDOTNET 
  Sent: Monday, May 24, 2004 1:09 PM
  Subject: Running batch file from 
  "ASP.NET"
  

  
    
      
      New Message on BDOTNET
    
      

  Running 
    batch file from "ASP.NET"


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: mithunbabu 
            
              

                Hi All,
                My requirement is tht i want to run an exe 
                from ASP.NET in the server for admin . I tried all the 
                solutions in the net. All it does is start a new process which 
                can be seen in the task manager process list. But i'm not able 
                to see the application running. I wanted to use the 
                application(the .exe) which is not possible if its running only 
                in the backend. 
                 
                A work around is using a batch file and specify the 
                exe-name with all the parameters tht i want. I created the batch 
                file. When i use it directly it  in the system, it works. 
                But i'm facing a problem calling it from ASP.NET using C#. Any 
                thoughts. Thanks in advance.
                 
                Mithun
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to