Home > Back-end >  Consult the Delphi file operations inside
Consult the Delphi file operations inside

Time:09-24

Need to through the database to find the data (batch),
Then, according to the column data to do file operations:
In another file sharing computer (Shared account, password), a specific folder, will meet the requirements of the folder (each folder name contains batch information, if there are two meet with small batch condition, will choose the latest date), copied to a local folder


I've never done file action in DELPHI, masters, you help me?

CodePudding user response:

On access to computer files by used by CopyFile in a Shared folder can be copied to the local: used by CopyFile (' file directory on the server ', 'local file directory, Flag).
Actually Flag is True, when there is a local does not cover, to False, the local existence is covered, what you say may conform to the requirements of the folder you also need to decide, if it is to copy the folder, can also cycle through the files in the folder to copy,

CodePudding user response:

Database query data, easy difficulty is another PC login Shared directory,

Suggestion:
1, through the login window "file sharing" directory;
2, the query data;
3, copy files,
  • Related