Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shellexecute .exe file with parameters

72 views
Skip to first unread message

timepro timesheet

unread,
Nov 18, 2022, 5:52:59 PM11/18/22
to
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


Enrico Maria Giordano

unread,
Nov 19, 2022, 3:44:42 AM11/19/22
to
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

timepro timesheet

unread,
Nov 19, 2022, 7:06:53 PM11/19/22
to
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)



Enrico Maria Giordano

unread,
Nov 20, 2022, 3:25:07 AM11/20/22
to
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 )

timepro timesheet

unread,
Nov 20, 2022, 11:57:57 AM11/20/22
to
thank you, emg.
0 new messages