954,255 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Access to "Temporary Internet Files" folder

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 ).

Mushy-pea
Posting Whiz in Training
275 posts since Jun 2006
Reputation Points: 47
Solved Threads: 1
 

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)

Chaky
Postaholic
2,017 posts since May 2006
Reputation Points: 230
Solved Threads: 47
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: