MikeP Posted April 14, 2008 Share Posted April 14, 2008 Hi. I'm looking for help. I'm on IE6, WinXPSP2. I need to use FileMove on files located in : C:\Documents and Settings\Administrateur\Local Settings\Temporary Internet Files to another directory but of course it doesn't work since the files aren't actually there.. I thought they were in : C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5 but I can't find them there either. So... how can I do that? or is there another way to have a cache directory working as any other normal directory? Thanks! Link to comment Share on other sites More sharing options...
d4rk Posted April 14, 2008 Share Posted April 14, 2008 i've successfully move the Temporary folder to another place, but haven't try with files inside [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
MikeP Posted April 14, 2008 Author Share Posted April 14, 2008 (edited) i've successfully move the Temporary folder to another place, but haven't try with files insideI needed to move specific files inside but I just tried moving the entire directory.. it works but it ain't successful. I'm only getting :CONTENT.IE5 directory with desktop.iniCONTENT.MSO (hidden and empty)and a directory (RANDOM NUMBERS) with inside : (another dir RANDOM NUMBERS)\Offline\Hashfile.datand nothing else.(I cleaned it and loaded only one page for test) Edited April 14, 2008 by MikeP Link to comment Share on other sites More sharing options...
Monamo Posted April 14, 2008 Share Posted April 14, 2008 I needed to move specific files inside but I just tried moving the entire directory.. it works but it ain't successful. I'm only getting : CONTENT.IE5 directory with desktop.ini CONTENT.MSO (hidden and empty) and a directory (RANDOM NUMBERS) with inside : (another dir RANDOM NUMBERS)\Offline\Hashfile.dat and nothing else. Here's a vanilla method based upon Content.IE5 (IE temp files "real" master root directory). You can modify it to go one level up as well, but if so, you'll want to add another level of folder recursion checking: CODE #include <File.au3> $sProfile = "USER" $sInetTemp = "C:\Documents and Settings\" & $sProfile & "\Local Settings\Temporary Internet Files\Content.IE5\" $sDestFolder = "C:\IETempBackup\" If Not FileExists($sDestFolder) Then DirCreate($sDestFolder) EndIf $aFolders = _FileListToArray($sInetTemp, "*", 2) If IsArray($aFolders) Then For $i = 1 To $aFolders[0] DirCreate($sDestFolder & $aFolders[$i]) _GetContent($aFolders[$i]) Next EndIf Func _GetContent($sFolder) $aContent = _FileListToArray($sInetTemp & $sFolder & "\", "*", 1) If IsArray($aContent) Then For $var = 1 To $aContent[0] If $aContent[$var] <> "desktop.ini" Then FileCopy($sInetTemp & $sFolder & "\" & $aContent[$var], $sDestFolder & $sFolder & "\") EndIf Next EndIf EndFunc Note: Not copying "desktop.ini" over because it's got the instructions for content display/hide and that won't matter/apply in a backup directory. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
MikeP Posted April 14, 2008 Author Share Posted April 14, 2008 (edited) ok.. one step further.. in my first post I was assuming files where in : C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5 but they're actually in : C:\Documents and Settings\Administrateur\Local Settings\Temporary Internet Files\Content.IE5 Somehow, even if I have hidden & system files display enabled, the windows explorer doesn't show it (free tools like ExplorerXP does...). Anyway, it's accessible if I type it in the address bar. The directories in it actually contain the files I'm looking for and when I'm trying to open them I'm getting a security warning (It's possible this page contains a security fault, do you want to continue?) so I'm clicking OK and I can access them and get the files.. When I'm moving C:\Documents and Settings\Administrateur\Local Settings\Temporary Internet Files\Content.IE5 with DirMove I'm not getting them.. When I'm trying to move C:\Documents and Settings\Administrateur\Local Settings\Temporary Internet Files\Content.IE5\(**the current random numbers of the temp directory**) , it's not copying them either, only half the files...?!?. But when I'm using the explorer manually I can do whatever I want.. copy/paste/delete... How to give AU3 access to these files? (if it ain't possible I guess I'll have no choice but automate the mouse/keyboard moves but that would be a gross solution) And about your script Monamo, thanks it looked interesting but somehow I'm getting.. nothing. IETempBackup is totally empty. Still cannot figure out what's wrong... Edited April 14, 2008 by MikeP Link to comment Share on other sites More sharing options...
MikeP Posted April 14, 2008 Author Share Posted April 14, 2008 And about your script Monamo, thanks it looked interesting but somehow I'm getting.. nothing. IETempBackup is totally empty. Still cannot figure out what's wrong...ok nevermind.. you had USER as Profile and I'm running as Administrator Your script works nicely and will allow me to work on these files exactly as I wanted. Thank you again Monamo ! Link to comment Share on other sites More sharing options...
Monamo Posted April 14, 2008 Share Posted April 14, 2008 ok nevermind.. you had USER as Profile and I'm running as Administrator Your script works nicely and will allow me to work on these files exactly as I wanted. Thank you again Monamo !heh, no problem - I was sitting here trying to work out a quick debugging method to help isolate what issue your system was having. Glad to hear it was just a factor with the variable. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
GEOSoft Posted April 14, 2008 Share Posted April 14, 2008 Actually, instead of$sProfile = "USER" $sInetTemp = "C:\Documents and Settings\" & $sProfile & "\Local Settings\Temporary Internet Files\Content.IE5\"you could just use$sInetTemp = @UserProfileDir & "\Local Settings\Temporary Internet Files\Content.IE5\"This will also allow for those rare installations where Documents and Settings is not located on C:\ drive.Also, if you are using MSOffice 2003 or greater, there is one folder in there that you can NOT see no matter what your folder view options are set for. Even allowing the viewing of super hidden files and folders won't let it show up. See this link for more info.Knowledge base article George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now