Posted by Grant Foraker on July 08, 2010 at 09:05:26:
Want to copy a PDF file from a non-QDIR folder (UNC) to the $CATEMP directory on a CometAnywhere client and Launch the file. Used examples from the docs and CUtlCpy.
The copy works fine but the Launch gives me a 2/0 error.
-----------------------------------------------------------
LET CAWNAME$ = '$(CATEMP)/' + WBBILL$ + '.PDF'
LET FLAGS = 2 + 512 + 1024 + 2048
Print (CopyFile = ARCNAME$, CAWNAME$, FLAGS)
INPUT (0) ''
PRINT (LAUNCH = CAWNAME$)
GOSUB GetResult
IF FuncError LE 32
LET MBMSG$ = 'Launch Error:' + STR(FuncError) + '/' + STR(FileError)
MSGBOX(MBMSG$)
ENDIF
---------------------------------------------------------------
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.