Finding out if a file has been Unzipped
I have been working on a project for quite sometime and have been trying to figure out how to tell if a file has been extracted from a zip program.
The program in its current state is that the user downloads the file and extracts it to wherever they want (mostly the desktop). When they open the program the it downloads a .dll file that it uses to write to a remote file on the server.
The problem I am having is that the program will function properly and will download the file, but if they have not unzipped the file it will not work when it needs to write to the remote location. I'm sure most of you have used WinZip and you know that when you open it you can see the files. What my users are doing is just doubleclicking the file inside the winzip program and running it from there. So when they get to the point where it writes to the file it fails and gives an error.
Initially I had the .exe and the .dll file in the zip file, but the users 1) were doing the same things mentioned above or 2) deleting the .dll file thinking "hey I don't need this even though it came with the program". So thats why I have the program just download the file.
I would like just to run this as an ASP.NET or classic ASP application, but they won't give me any server space equipped with IIS. So this is what I am forced to do.
Now I know some of you may be thinking that I should just check to see if the file is in the location. I already did, the zip program fools the program into thinking the file is in the specified location. It even downloads the .dll file into the location of the ZIP file where it thinks the program is located.
So if anyone can think of a way to figure out if a file has been unzipped or a better workable solution please let me know.
Thanks for your time
Ryan