• shellexecute .exe file with parameters

    From timepro timesheet@21:1/5 to All on Fri Nov 18 14:52:58 2022
    what is the syntax/command to shellexecute an .exe file with parameters

    WWWEINVOICE=WEBSITENAM
    UID=THEUSENAME
    PSW=THEPASWORD
    ShellExecute( 0, 0, WWWEINVOICE UID PSW, 0 ,0,1) does not execute.
    nor does: ShellExecute( 0, 0, WWWEINVOICE, [UID PSW], 0 ,0,1)
    nor does: WWWEINVOICE=WEBSITENAME +spac(1)+ UID +SPAC(1)+PSW
    ShellExecute( 0, 0, &WWWEINVOICE, 0 ,0,1)

    thank you

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sat Nov 19 09:44:41 2022
    Il 18/11/2022 23:52, timepro timesheet ha scritto:

    what is the syntax/command to shellexecute an .exe file with parameters

    WWWEINVOICE=WEBSITENAM
    UID=THEUSENAME
    PSW=THEPASWORD
    ShellExecute( 0, 0, WWWEINVOICE UID PSW, 0 ,0,1) does not execute.
    nor does: ShellExecute( 0, 0, WWWEINVOICE, [UID PSW], 0 ,0,1)
    nor does: WWWEINVOICE=WEBSITENAME +spac(1)+ UID +SPAC(1)+PSW
    ShellExecute( 0, 0, &WWWEINVOICE, 0 ,0,1)

    I don't think you can use ShellExecute() for that. You can open an URL
    but you can't pass userid and password to it like it was an executable.
    If your website supports it, you can use the question mark/ampersand
    syntax. As an example:

    http://www.mysite.com?myuser=abcd&mypasw=efgh

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From timepro timesheet@21:1/5 to Enrico Maria Giordano on Sat Nov 19 16:06:52 2022
    On Saturday, November 19, 2022 at 3:44:42 AM UTC-5, Enrico Maria Giordano wrote:
    Il 18/11/2022 23:52, timepro timesheet ha scritto:

    what is the syntax/command to shellexecute an .exe file with parameters

    WWWEINVOICE=WEBSITENAM
    UID=THEUSENAME
    PSW=THEPASWORD
    ShellExecute( 0, 0, WWWEINVOICE UID PSW, 0 ,0,1) does not execute.
    nor does: ShellExecute( 0, 0, WWWEINVOICE, [UID PSW], 0 ,0,1)
    nor does: WWWEINVOICE=WEBSITENAME +spac(1)+ UID +SPAC(1)+PSW
    ShellExecute( 0, 0, &WWWEINVOICE, 0 ,0,1)
    I don't think you can use ShellExecute() for that. You can open an URL
    but you can't pass userid and password to it like it was an executable.
    If your website supports it, you can use the question mark/ampersand
    syntax. As an example:

    http://www.mysite.com?myuser=abcd&mypasw=efgh

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg
    thanks emg:

    WWWEINVOICE is just the name of the .EXE file to be run. (it is not an URL).

    e.g.
    WWWEINVOICE=DISKNAME()+':\MY_TAX\'+GSTPAIDSUBFOLDER+'\MYTAX.EXE' UID='ABC123_UCODE19e'
    PSW='ABC_@#15y'
    ShellExecute( 0, 0, so_what_to_type_here?, 0 ,0,1)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sun Nov 20 09:25:07 2022
    Il 20/11/2022 01:06, timepro timesheet ha scritto:

    WWWEINVOICE is just the name of the .EXE file to be run. (it is not an URL).

    e.g.
    WWWEINVOICE=DISKNAME()+':\MY_TAX\'+GSTPAIDSUBFOLDER+'\MYTAX.EXE' UID='ABC123_UCODE19e'
    PSW='ABC_@#15y'
    ShellExecute( 0, 0, so_what_to_type_here?, 0 ,0,1)

    ShellExecute( 0, 0, WWWEINVOICE, UID + " " + PSW, 0, 1 )

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From timepro timesheet@21:1/5 to Enrico Maria Giordano on Sun Nov 20 08:57:55 2022
    On Sunday, November 20, 2022 at 3:25:07 AM UTC-5, Enrico Maria Giordano wrote:
    Il 20/11/2022 01:06, timepro timesheet ha scritto:

    WWWEINVOICE is just the name of the .EXE file to be run. (it is not an URL).

    e.g.
    WWWEINVOICE=DISKNAME()+':\MY_TAX\'+GSTPAIDSUBFOLDER+'\MYTAX.EXE' UID='ABC123_UCODE19e'
    PSW='ABC_@#15y'
    ShellExecute( 0, 0, so_what_to_type_here?, 0 ,0,1)
    ShellExecute( 0, 0, WWWEINVOICE, UID + " " + PSW, 0, 1 )
    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg
    thank you, emg.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)