Table of Content
HAL Forum
function Integer MoveFile (
string filename,string sourcefolder,string destfolder)
Description:
moves a file / folder from one folder to another
Parameters:
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;

Related topics:
««