Subject Re: USE A STRING AS A FILE NAME
From ED FURCHE <ED@UNIV-COMPUTERS.COM>
Date Sat, 25 Jun 2022 09:06:35 -0400
Newsgroups dbase.getting-started

ED FURCHE Wrote:

> I WANT TO USE A STRING AS A FILE NAME
> EXAMPLE  STNAME=" 012022.CSV" USED IN A DOS COPY COMMAND
> I TRIED THIS...
>     !XCOPY @STNAME G:\VISPLUS   AND
>     !XCOPY &STNAME  G:\VISPLUS   AND
>     !XCOPY %STNAME
>
> NONE WORKED.....

Why doesn't  this work?
     stname="g:\excel\cash012022.csv"
     stname="!XCOPY " + stname + " G:\CASH.CSV"
     !stname