Whats wrong with this?
dim strsourcefile as string,newfile as string
dim j as int
strsourcefile = "d:\apps\doc\benefitquote.xls"
newfile ="c:\benefitquote0.xls"
filecopy strsourcefile,newfile
j = 1
do while err>0
err =0
newfile = "c:\benefitquote"+trim(Str(j))+".xls"
filecopy strsourcefile,newfile
j= j+1
loop
I always get error number 52 -> Bad file name or number
i have checked that the file "d:\apps\doc\benefitquote.xls" exists. However, the new file "C:\benefitquote0.xls" is not creted
Any suggestions?
dim strsourcefile as string,newfile as string
dim j as int
strsourcefile = "d:\apps\doc\benefitquote.xls"
newfile ="c:\benefitquote0.xls"
filecopy strsourcefile,newfile
j = 1
do while err>0
err =0
newfile = "c:\benefitquote"+trim(Str(j))+".xls"
filecopy strsourcefile,newfile
j= j+1
loop
I always get error number 52 -> Bad file name or number
i have checked that the file "d:\apps\doc\benefitquote.xls" exists. However, the new file "C:\benefitquote0.xls" is not creted
Any suggestions?