Re: CopyFile error


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Grant Foraker on May 18, 2011 at 05:39:24:

In Reply to: CopyFile error posted by Grant Foraker on May 17, 2011 at 09:00:32:

Found my problem. CopyFile doesn't need double quoting for paths with embedded blanks. LAUNCH does. Moved my double quoting logic to line before LAUNCH.


Print (CopyFile = PDFDOC$, CAWDOC$, FLAGS)
GOSUB GetResult
IF FuncError NE 1
LET MBMSG$ = 'Copy Error:' + STR(FuncError) + '/' + STR(FileError)
MSGBOX(MBMSG$)
GOTO LTD90
ENDIF

LET CAWDOC$ = '"' + STRIP(CAWDOC$) + '"'
PRINT (LAUNCH = CAWDOC$)
GOSUB GetResult
IF FuncError LE 32
LET MBMSG$ = 'Launch Error (Remote):' + STR(FuncError) + '/' + STR(FileError)
MSGBOX(MBMSG$)
ENDIF
GOTO LTD90
LTD20:
LET PDFDOC$ = '"' + STRIP(PDFDOC$) + '"'
PRINT (LAUNCH = PDFDOC$)



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]