Re: Winform.exe execution from HTTP

From: David Sworder \(formerly known as \ (grady@sanford.son)
Date: 11/07/02


From: "David Sworder \(formerly known as \"Rev. Dr. Hulio Manuel Sanchez-Cruz\"\)" <grady@sanford.son>
Date: Thu, 7 Nov 2002 07:47:47 -0800


Hello,

    I posted several messages asking the very same question several months
ago and never found an answer. As far as I can tell, there is no way to pass
in a command line parameter to an exe that is launched via http.

David

"Shachar" <shacharm@pos.co.il> wrote in message
news:uYxWHLghCHA.2448@tkmsftngp11...
> Hello all
>
> I'm running my program from http server :http://myserver/myprogram.exe
> the download automatically to my computer
> ,written in the gac, gacutil /ldl, and run fantastic.
> but I want to send parameters to my program
>
> by running:
>
> http://myserver/myprogram.exe parameter
>
> or http://myserver/myprogram.exe?parameter
>
> or http://myserver/myprogram.exe&parameter
>
> or http://myserver/myprogram.exe /parameter
>
> or http://myserver/myprogram.exe \parameter
>
> but I get no parameter, I use in C# :
>
> static void Main(string[] args)
> { // -----------------------------
> // args.Length allways = 1
> // -----------------------------
> if (args.Length > 0) ar = args[0];
> }
>
> If I run the program from C:\Test\myprogram.exe parameter
>
> I get the parameter .
>
> Thanks,
>
> Shachar.
>
>
>



Relevant Pages

  • Re: Simple program not producing output
    ... Pasted the MSDN code into this code file. ... When to a command shell, located the exe. ... public static void PrintValues ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simple program not producing output
    ... Pasted the MSDN code into this code file. ... When to a command shell, located the exe. ... public static void PrintValues ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Shell Functions and DOS executables
    ... I had to create a .BAT file that actually made the call to the exe, ... Dim wshExec As IWshRuntimeLibrary.wshExec ... I followed the above and the DOS command executes perfectly! ...
    (microsoft.public.vb.general.discussion)
  • Re: Alternate file types for RUN ?
    ... Some of my programs are actually invoked with the RUN command without ... you rename the resulting .EXE into .EXE_VAX ... alternate extension. ... $ show symb arch ...
    (comp.os.vms)
  • Re: How to pass and get parameter from command line in VB
    ... Look up the Command$ function in the help. ... for general programming questions like this you'd better see the ... Re: Passing a Runtime Parameter to a VB6 EXE: How To? ...
    (microsoft.public.vb.6.webdevelopment)