General information
Category:
Windows API functions
Title:
Shellexecute parameters
anyone know the precise syntax for passing params to a shellexecutc command?
the following code runs the program but the receiving program is not seeing any parameter
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
cAction = "open"
CfILENAME=progname
cParams=startkey
*result=ShellExecute(0,cAction,cFILENAME,startkey,"",1) && version 1
result=ShellExecute(0,cAction,cFILENAME,'"'+startkey+'"',"",1) && version 2
neither "result=" line passes the parameter successfully.
Grateful for any suggestions...
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only