Short description:
VISUAL FOXPRO Project
Create a Visual FoxPro program compatible with version 6.0 to:
Copy files specified in an INI files, ensuring that the destination
files are not opened. Move the destination files to a backup folder specified in the INI prior to copying.
INI File: [login to view URL]
files=contact?.*,contsupp.*,conttlog.*,contudef.*,conthist.*,mailers.*,contgrps.*
source=x:\admissions
destination=f:\admissions
backup=c:\cslc\backup\burbank
## Deliverables
Detail description:
Display on the screen: "Synching from " + source. Delete file: [login to view URL] at beginning of program.
Create a Visual FoxPro program (version 6.0) to copy specified files from a Source folder to a destination folder. Prior copying must ensure that all the source files exist: Pop up and appropriate message if NOT and Return .F..
Ensure that all the destination files can be opened exclusively, prior to beginning copying. DO THIS BY RENAMING THE FILES TO PREFACE WITH x. If any file cannot be opened exclusively then Rename the other files back to original, prompt a message, and Return .F..
If Destination folder does not exist, create it: Do not prompt. If Backup folder does not exist, create it: Do not prompt.
Next move all renamed files from the destination folder to the Backup folder, back to the original name. Overwrite to the Backup folder. If, for any reason, one file cannot be moved, then UNDO all the moving that has been done, and PROMPT an appropriate message, and Return .F..
After successful MOVE to Backup, then copy from Source to Destination. If, for any reason, one file cannot be copied, then UNDO the MOVE to the Backup folder, Prompt an appropriate error message, and Return .F..
Remove "Synching from " message from the screen.
After successful Copy from Source to Destination, Return .T.
All the error messages will include the MESSAGE() text of the error. If any error occurs, create file [login to view URL], and put a descriptive message as text only. Include Date, and Time of the error.
The program will not have any prompts except error messages. The program will be called from a FoxPro program, and must be created in Visual FoxPro. Executable is not necessary, source code is necessary.
## Platform
Language: Visual FoxPro 6.0 (or compatible version)
Run on Windows XP