Bob,

 

Assuming you have:

 

SET ERROR VAR verror

 

… before that code, the problem is that the error variable will only tell you 
if the ZIP itself was successful, not the actual MOVE.

 

You need to code a routine to copy the source file then delete the source file, 
testing to see if the file exists at various points.  There are all sorts of 
ways to go about this part, many of which can be done without writing either 
.bat or .cmd files.  If you’d like an example, contact me off-list.

 

Emmitt Dove

Converting Systems Architect

Evergreen Packaging, Inc.

[email protected]

(203) 214-5683 m

(203) 643-8022 o

(203) 643-8086 f

[email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Tuesday, December 07, 2010 13:18
To: RBASE-L Mailing List
Subject: [RBASE-L] - v8 compiled app

 

I have an app that runs fine from the R:>.  However when I compile it, this

section of code does not work the same.

 

--copy 856 file to 856 directory
ZIP cmd.exe /c MOVE &vedifile &v856file

IF verror <> 0 THEN
PROPERTY move856 visible 'true'
ELSE
PROPERTY move856 visible 'false'
ENDIF

 

vError always returns as 1 when running compiled

but works as expected when running from the R>.

 

Is the ZIP /C command not supported in the compiler?

 

Any other thoughts? 

 

Thanks,

-Bob

Reply via email to