Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seeking Alternative to COPY FILE Command
Message
From
12/01/2007 07:43:28
 
 
To
23/11/2000 02:57:03
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00444304
Message ID:
01184965
Views:
24
Dear Sir,

When I run Following codes, it do nothing
What is wrong?
datadir="d:\c2007\tables\" &&Source
backdir="d:\c2007\tables\Backup\" && Target

=adir(afiles,datadir+"*.dbf")

declare integer CopyFile in KERNEL32.dll ;
	string @SourceFileName, ;
	string @DestFileName, ;
integer bFailIfExists

nsucces=0
for nt = 1 to alen(afiles,1)
	nsucces=copyfile("datadir"+afiles[nT,1],"backdir"+afiles[nT,1],0)
	wait window "Done"
	if nsucces = 0
		wait window "Error"
		exit &&
	endif
endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform