General information
Category:
Coding, syntax & commands
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
*Syntax:
*? ShellExecute(hwnd,lpOperation,lpFile,lpParameters,lpDirectory,nShow)
I am not quite sure what do with your parameters. Try:
? ShellExecute(0,"open","C:\Program Files\TWAINCommander\TWAINCom.exe",;
"y:\myapp\mydoc.tiff -multipagetiff",;
"y:\MYAPP",1)
clear dlls
>ShellExecute("TWAINCOM.EXE", "y:\MYAPP","y:\myapp\mydoc.tiff -multipagetiff")
>
>file shellexecute.prg does'nt exist
>
>I want to run the twaincom.exe program from visual foxpro.
>
>twaincom.exe is located at the following path:
>"C:\Program Files\TWAINCommander\TWAINCom.exe"
>
>Thank you very much.
Previous
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