| 
	
		| Subject | Re: DOS command |  
		| From | Andy Taylor <andy.taylor.1959@outlook.com> |  
		| Date | Sat, 25 Jun 2022 09:33:50 -0400 |  
		| Newsgroups | dbase.getting-started |  | 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.
 
 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
 
 
 
 |  |