Usually the syntax is:
@Command( [Execute] ; application ; filename )
Notes does not find the application if a parameter is used. To start an application using a parameter this parameter must be set before the filename.
Example: Start a new Winword document using a special Template (/t) As shortcut in Windows can be used c:\PROG\OFFICE97\winword.exe /t"C:\Data\Templates\letter.dot"
As formula for a button you can use:
program:="C:\\PROG\\OFFICE97\\winword.exe"; parameter:= "/t"; name:="C:\\Data\\Templates\\letter.dot"; blank:=@Char(34); filename:=parameter+blank+name+blank; @Command([Execute];program;filename) **************
This was first published in April 2002