Implement a Portable File System (PFS). Allocate a file. Move files from the Windows file system into your file. You should have your own directory structure, allocation table, etc. inside your file. Move files back out of your file to the Windows file system.
When your program is running it should somehow accept the following commands:
openPFSfile
putmyfile get myfile
rmmyfile?dir?putrmyfile "Remarks"
killPFSfile quit
Allocate a new 10 KByte "PFS" file if it does not already exist. If it does exist, begin using it for further commands.
Copy the Windows file "myfile" into your PFS file.
Extract file "myfile" from your PFS file and copy it to the current Windows directory.
Delete "myfile" from your PFS file. List the files in your PFS file.
Append remarks to the directory entry for myfile in your PFS file.
Delete the PFSfile from the Windows file system. Exit PFS.
You can provide those commands either through menus or through buttons on a?form (or both). If the user clicks a button in your application window, it might open up a dialog box to get a filename. Alternatively, you can just open up a text box and let the user key in the name of a file (or whatever other variable information you need.)
Limits:
Filenames are a max. of 20 bytes. The directory need handle only Name, Size, Time and Date. If the original PFS file fills up then you should create a new PFS "volume" with the same name but a different suffix - e.g., pfs.1, pfs.2, etc., each the same size as the first "volume". Your file system should use an allocation scheme where "disk blocks" are 256 bytes each.