Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where are those files on HD? 1

Status
Not open for further replies.

Andrzejek

Programmer
Jan 10, 2006
8,569
US

This is kind of continuation of Show pdf, tif and jpg

I can copy and show the files to the user, but I am looking for the best place to copy the files to my HD. When I use other software (MS Office Document Imaging) I can see the last files open, but they show as:
[tt]
1. C:\Documents and Settings\...\47ZBQ4LL\49967-2[1].tif
2. C:\Documents and Settings\...\NZL3ZLGO\49967-1[1].tif
3. C:\Documents and Settings\...\C7C3EVGR\49966-3[1].tif
[/tt]
But I can not find any of these files or folders in my C:\Documents and Settings\ folder, or anywhere on my hard drive. I have ‘show all hidden folders and files’ marked in my Windows Explorer.

Where are they? (so I can duplicate the logic to hide the files I show to the user). I should be able to find the folders and files because they don't get deleted, I can got to the same files the next day from my HD.
What’s between [tt]Documents and Settings\[/tt] and [tt]\47ZBQ4LL\49967-2[1].tif[/tt] ???


Have fun.

---- Andy
 
Internet Explorer saves cached files in "Temperory Internet Files" folder. The path of the folder you're looking for is:

C:\Documents and Settings\<username>\Local Settings\Temporary Internet Files\Content.IE5\$$$$$$$$

C: drive will change if its not the system partition. The last folder has 8 alphanumeric characters in its name (like 47ZBQ4LL).

Note that this is the path where Windows XP stores temperory internet files. Windows Vista and 7 use a different location.
 

waytech2003, of course I did try search for folders and for file names. I could not find anything.

Hypetia, I see the path you mentioned, but I do not see any of the folders or files I mentioned originaly in there. But I can still open MS Office Document Imaging, go to File and see the recently opened files, I can select any of them and open with no problem. I just still do not know where they are.

OK, I just run a little test: in IE - Tools - Internet Options... I deleted Temporary Internet Files, and now I can not re-open any files in question, they are gone. So there WERE in there, I just could not see any of them in Windows Explorer.

Hmmmm, I need to find out more where they were / could be again....

Have fun.

---- Andy
 
>I can copy and show the files to the user, but I am looking for the best place to copy the files to my HD.

Can you provide more details? Exactly how do you open jpg/pdf/tif files? Where do they reside and why they end up in Temporary Internet Files folder? Please show your code.
 

There is this other database where some info is kept. One of the piece of information is the server path to the image files (pdf, jpg, tif, etc). I have access (I have a view) to the path and the files on the server and I want to show the files to my users, but I can not show where they are on the server (keepers of the other DB are protective of the locations of those file, I don't know why, but that's the rule).

I could simply use this code to open any file
Code:
Public Sub OpenDocument(strDocPath As String)

Dim G As Long
G = Shell("RUNDLL32.EXE URL.DLL,FileProtocolHandler " & strDocPath, vbNormalFocus)
    
End Sub
but that would reveal the path to that file on the server. Plus I get the message that the file is read-only along with the path to the file.

I am trying to develop a way to copy the file from the server, paste it into some location on the hard drive, chenge it read and write, and open the file from local HD. I just don't know the best location on the HD to do that.

"they end up in Temporary Internet Files folder" when I use the other DB's application to view them (sorry for the confusion) and I thought if I can emulate what they are doing and copy files to the same location thru my code, that would be nice.

Come to think of it, the location on the HD is probably not that important after all....

Have fun.

---- Andy
 
>I have access (I have a view) to the path and the files on the server ... but I can not show where they are on the server

Probably you simply need to copy the files from server to a local folder. Temp folder is a good choice. After making a local copy, you can invoke it with the OpenDocument function. And finally when you are done with the file, you can delete the temporary copy before exiting the program.
 

That's what I am going to do. :)

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top