I have a simple application which is running on a Vista PC. During a certain function, it is supposed to download a .csv file from my FTP server, append some data and upload the new file (same name).

It works great the first time I launch the application, but when I make subsequent calls to the append function it appends the data to some hidden/cached version of the original downloaded file and uploads that file. This means only the last entry ever shows up on the FTP file copy, as the application uses the same original download file to append to ever time. It is supposed to be downloading the latest version from the FTP site each time, but it isn’t.

After the initial download, I can remove the file from the FTP site and as long as I don’t close and reopen my application it keeps grabbing the cached version of the file and doesn’t throw any errors. If I close and reopen the application after deleting the FTP file it accurately warns me that the file could not be downloaded.

How do I get around this? It works fine on two Vista PCs but not on two others. Same application, very different results.

If I search for the file by name on the PC it shows the downloaded file and I can delete it, and the append call, downloads it again but as stated this is the original download and not what is or isn’t on the FTP server. Searching hidden files and folders turns up 4 hidden versions but I cannot see what folder they are in or find any information on them. The advanced search just says it finds 4 plus the original, and I can only interact with the original.

Please help. Thank you.