Question:

How to run .exe on the web?..?

by Guest11050  |  earlier

0 LIKES UnLike

For example like Thawte Personal Certificate Website .. on the location bar it states tat it is coming from e.g : http://www.thawte.com/../../../../../step1.exe

but on our browser it shows like web application.?.. how can i do tat?

 Tags:

   Report

3 ANSWERS


  1. right click on the file and hit "open with"..then choose the internet to open with!... :D


  2. Browser will not open unless it know what application to open it.

    You have to write "application type/file" in response

    else it will never work

    Hope this helps

    Cheers:)

  3. I HOPE THIS LINK HELPS UUU

    http://www.codecomments.com/message52225...

    run .exe from web service - looking for ideas

    Hello everyone, I am trying to accomplish something, and the way I had

    intended is not working out, so I am looking for ideas.

    Here is what I am trying to accomplish.  I must preface this by saying

    that I am new to iis and iis security.

    I have a .exe that must stay on the server.  I would like people to be

    able to run this .exe with specified parameters/switches without

    interacting directly with the server.

    I had thought to use a web service to accomplish this, but I am running

    into permission problems.  Here is my web service; if it helps to

    explain (I have tried both versions):

    <WebMethod(MessageName:="Unsigned")> _

    Public Overloads Function Encrypt(ByVal a_strEncryptKey As String,

    _

    ByVal a_strDestPath As String, _

    ByVal a_strFilePath As String) As String

    Dim strReturn As String

    Dim objProcess As Process

    Dim objProcessInfo As ProcessStartInfo

    Try

    objProcess = New Process()

    objProcessInfo = New ProcessStartInfo("pgp", "-ea """ +

    a_strFilePath + """ """ + a_strEncryptKey + """ -z secretkey")

    objProcess.StartInfo = objProcessInfo

    objProcess.EnableRaisingEvents = True

    objProcess.Start()

    objProcess.WaitForExit()

    Catch ex As Exception

    strReturn = ex.ToString

    End Try

    Return strReturn

    End Function

    AND

    <WebMethod(MessageName:="Unsigned")> _

    Public Overloads Function Encrypt(ByVal a_strEncryptKey As String,

    _

    ByVal a_strDestPath As String, _

    ByVal a_strFilePath As String) As String

    Dim strReturn As String

    Dim objProcess As Process

    Dim objProcessInfo As ProcessStartInfo

    Try

    objProcess = New Process()

    objProcessInfo = New ProcessStartInfo("cmd.exe")

    objProcessInfo.RedirectStandardInput = True

    objProcessInfo.RedirectStandardOutput = True

    objProcessInfo.UseShellExecute = False

    objProcess = Process.Start(objProcessInfo)

    objProcess.StandardInput.WriteLine("pg... -ea """ +

    a_strFilePath + """ """ + a_strEncryptKey + """ -z secretkey")

    objProcess.StandardInput.WriteLine("ex...

    strReturn = objProcess.StandardOutput.ReadToEnd

    Catch ex As Exception

    strReturn = ex.ToString

    End Try

    Return strReturn

    End Function

    It works if I try these in a windows application, that's why I

    believe the problem to be permissions related.  I have tried mucking

    with the security on the pgp.exe file, the .net framework configuration

    thingy, and I'm sure other permissions settings.  Not really knowing

    what I'm doing makes it a frustrating 'shotgun approach' (hoping

    something will work).

    So now, I am looking for any suggestions on how to make the web service

    work or a better way to accomplish this.  I hope this makes sense; my

    head is a little sore from banging it against the keyboard :)

    Thank you for any help.

    Have a great night!

    Ryan

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.