|
moves a file / folder from one folder to another |
|
filename |
file name |
sourcefolder |
source folder |
destfolder |
destination folder |
|
global
procedure MoveAfterImport()
begin
string 255 foldername,filename,tofolder;
integer res;
foldername = "GALILEO"; //Source folder
tofolder = "IMPORTED"; //Destination folder
filename = "TEST.TXT"; //File Name
res = MoveFile(filename,foldername,tofolder);
return;
end;
// Moving a folder Example
global
procedure MoveFolder()
begin
string 255 foldername,filename,tofolder;
integer res;
foldername = "/GALILEO"; //Source folder
tofolder = "/Moved/GALILEO"; //Destination folder
res = MoveFile("/",foldername,tofolder);
return;
end;
««