Posted by Stephen Auerbach on August 03, 2007 at 13:46:02:
Please look at this tiny source program and tell me why, considering the documentation on Shell Execute, one statement format works and the second does not.
!//ib//
LENGTH 4 & LOCAL VERB$
LENGTH 20 & LOCAL CMD$
LENGTH 80 & LOCAL LOC$
PRINT (CS)
PRINT "SHELL EXECUTE"
WAIT
================== This line works
! Print (0) (ShellExecute="OPEN","TEST.DOCX","","d:\COMET",1)
================ This construction DOES NOT work
VERB$ = "OPEN"
CMD$ = "TEST.DOCX "
LOC$ = "D:\COMET "
PRINT (0) (ShellExecute = VERB$,CMD$,"",LOC$,1)
RUN "QMONITOR"