Access to "Temporary Internet Files" folder

Reply

Join Date: Jun 2006
Posts: 263
Reputation: Mushy-pea is an unknown quantity at this point 
Solved Threads: 1
Mushy-pea's Avatar
Mushy-pea Mushy-pea is offline Offline
Posting Whiz in Training

Access to "Temporary Internet Files" folder

 
0
  #1
Nov 1st, 2006
Hello everyone. I'm trying to write a small Perl script to test a web application I'm developing. The problem is it needs to open a cookie file in the "Temporary Internet Files" folder and Windows seems to be denying it access. The shell seems to be blocked from accessing this folder as well, so I can't use that to copy the file to a normal location from within the script. Will I have to use a system call to access this file or is there a simpler way? Any help appriciated.

Steven.

Note: I'm using Windows 98 SE (i.e. the best Windows ever :p ).
The one question you should not ask when teaching a new language structure is "Do you understand?". Do you understand?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,932
Reputation: Chaky is on a distinguished road 
Solved Threads: 43
Chaky's Avatar
Chaky Chaky is offline Offline
Posting Virtuoso

Re: Access to "Temporary Internet Files" folder

 
0
  #2
Nov 2nd, 2006
First of all, cookies are not in temporary internet files. They are in "C:\Windows\cookies" folder.

And for the Temp.internet files, you'll need to know the full path to the file (I advise that you use 8.3 names). Should be something like this:

"C:\WINDOWS\Tempor~1\Content.IE5\4NMSCF1J\file.ext"

Tricky part is to get that "4NMSCF1J" folder name. Don't know the location where it's stored. Probably somewhere in C:\WINDOWS\Temporary Internet Files\Content.IE5\index.dat

There's always a manual peek via command prompt.


BTW, only files you would be denied access to are :

C:\WINDOWS\Temporary Internet Files\Content.IE5\index.dat
(Unless you are in safe mode without network support)

"C:\Windows\cookies\index.dat", (it has System attribute on by default)

and

"C:\Windows\History\History.IE5\index.dat" (unless you haven't turned on internet explorer yet in current session)


(I know my Win98)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows 95 / 98 / Me Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC