2017-09-11 8 views
2

실행 가능한 프로그램을 개발하여 로컬 컴퓨터에 배포했습니다. 또한 ASP.NET 웹 응용 프로그램을 개발하여 서버에 배포했습니다. ASP.NET 웹 응용 프로그램은 ActiveXObject (Javascript)를 사용하여 로컬 컴퓨터에서 실행 프로그램을 호출 할 수 있습니다. 프로그램은 예상대로 작동합니다. 그러나 실행 프로그램이 로컬 시스템 대신 서버에서 실행되는 것으로 나타났습니다.ActiveXObject를 사용하는 서버 대신 클라이언트 컴퓨터에서 실행 파일 (exe)을 실행하십시오.

실행 프로그램을 서버가 아닌 클라이언트 컴퓨터에서 실행할 수 있습니까? 활성의

+0

불가능하지 않습니다. –

답변

1

Insted는 ...... 그것에 모습 U 도움이 될

using System.Diagnostics; 

    //Get path of the system folder. 
    string sysFolder = 
    Environment.GetFolderPath(Environment.SpecialFolder.System); 
    //Create a new ProcessStartInfo structure. 
    ProcessStartInfo pInfo = new ProcessStartInfo(); 
    //Set the file name member. 
    pInfo.FileName = sysFolder + @"\eula.exe"; 
    //UseShellExecute is true by default. It is set here for illustration. 
    pInfo.UseShellExecute = true; 
    Process p = Process.Start(pInfo); 

// 또는

System.Diagnostics.Process.Start("iexplore.exe") 

또는

System.Diagnostics.Process.Start(@"c:\nes\nes.exe"); 

또는

되세요
System.Diagnostics.Process.Start(Server.MapPath("`/SanScan.exe"));