Hey Thomas
Two thoughts..
One being if the long path name has spaces you'll probably have to surround
them in quotes.
set var scanname = ((char(39)) + .scanname + (char(39)))
set var Imgsname= ((char(39)) + .Imgsname+ (char(39)))
The second would be to combine the whole command like:
set var vm_cmd = ('COPY ' + .scanname + ' ' + .Imgsname)
and run it like:
&vm_cmd
Jim Limburg
--- Thomas J Cimicato <[EMAIL PROTECTED]> wrote:
> I have a 4.5++ program that does a copy and then a rename on a file. I
> converted it to 6.5++ (1.851xRT03) and now both the copy and the rename
> statement generate errors in both DOS and Windows version. The command
> works at the R:> prompt but not in the program or trace.
>
> Copy &scanname &Imgsname
>
> Rename &scanname &Imgsname
>
> &scanname is exactly 50 characters long which include the full path and
> filename. &Imgsname is 48 characters long.
>
> Any thoughts???
>
> Thanx
>
> Thom Cimicato
>
> Thomas J Cimicato
> President
> Integrated Check Technologies
> Collect-A-Check, Inc.
> ------------------------------------------------------------
> Bus:800.338.0676
> 614-55-CHECK
> Fax:614-552-4439
> Mailto:[EMAIL PROTECTED]
> www.ICheckTech.com
>
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/