Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00271750
Message ID:
00271757
Views:
26
>Is the a vfp command or utitiity that can move files from one folder to another? Help Appreciated.
>
Hi Nick,

The FileSystemObject's MoveFile method can do this, as can an API call.
* FileSystemObject
oFS = CREATEOBJECT('Scripting.FileSystemObject')
oFS.MoveFile(lcSourceFile, lcDestination)
* API Call
DECLARE INTEGER MoveFile IN Win32API;
  STRING @lpExistingFileName,;
  STRING @lpNewFileName
llsuccess = (MoveFile(@lcSourceFile, @lcDestination) # 0)
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform