Subject Re: DOS command
From ED FURCHE <ED@UNIV-COMPUTERS.COM>
Date Sat, 25 Jun 2022 10:11:20 -0400
Newsgroups dbase.getting-started

Andy Taylor Wrote:

> Hi Ed,
>
> Your code doesn't work because you have doubled up on the ! (or run) command.
> Run Run XCOPY g:\excel\cash012022.csv  G:\CASH.CSV
>
> Is there a reason why you are using DOS commands here?
> You could just use the dBASE copy file command instead.
> didnt work   also tried putting ! in front   still didnt work.
> stname = "g:\excel\cash012022.csv"
> stname = "copy file "+stname+" "+"G:\CASH.CSV"
> &stname.
>
> Regards,
> Andy
>
> > Why doesn't  this work?
> >      stname="g:\excel\cash012022.csv"
> >      stname="!XCOPY " + stname + " G:\CASH.CSV"
> >      !stname
>