Thanks. I need to check to see if the files exists first before deleting it.
Then I will not get that error.

Dan Goldberg 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of A. Razzak
Memon
Sent: Tuesday, June 10, 2008 9:55 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Delete command

At 12:41 PM 6/10/2008, Dan Goldberg wrote:

>I have a delete command that I am trying to run to delete a file and 
>when I try to run it I get the error:
>
>"Syntax is incorrect for the command delete"
>
>Here is a snippet of my code:
>
>SET VAR vrunexp = ('delete r:\sawverify\run' + .vrun + '.xls') &vrunexp
>
>I have tried putting quotes around the filename/path as well as the `
>
>Does anybody have any suggestions??

Dan,

Could you reveal the values for dotted variable (.vrun)?

You may need to add another slash "\", if appropriate.

Example:

SET VAR vrunexp = ('delete r:\sawverify\run\' + .vrun + '.xls') &vrunexp

Also, verify the correct drive letter and folders, etc.

Hope that helps!

Very Best R:egards,

Razzak.
   


Reply via email to