•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,593 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,520 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 3320 | Replies: 3
![]() |
| |
•
•
Join Date: Sep 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
CODE
Get "Temporary Internet Files" directory and files)
const int cookies = 32;
Shell32.Folder objFolder;
Shell32.FolderItems objFolderItems;
Shell32.ShellClass objShell;
string strFolderpath = System.IO.Path.GetTempPath().Substring(0, System.IO.Path.GetTempPath().Length - 1) + "orary Internet Files\\";
objShell = new Shell32.ShellClass();
objFolder = objShell.NameSpace(cookies);
objFolderItems = objFolder.Items();
foreach (Shell32.FolderItem objFolderItem in objFolderItems)
{
//MessageBox.Show(strFolderpath+objFolderItem.Path.ToString());
string strDeleteFile = strFolderpath + objFolderItem.Path.ToString();
File.Delete(strDeleteFile);//delete cannot
}
Get "Temporary Internet Files" directory and files) const int cookies = 32;
Shell32.Folder objFolder;
Shell32.FolderItems objFolderItems;
Shell32.ShellClass objShell;
string strFolderpath = System.IO.Path.GetTempPath().Substring(0, System.IO.Path.GetTempPath().Length - 1) + "orary Internet Files\\";
objShell = new Shell32.ShellClass();
objFolder = objShell.NameSpace(cookies);
objFolderItems = objFolder.Items();
foreach (Shell32.FolderItem objFolderItem in objFolderItems)
{
//MessageBox.Show(strFolderpath+objFolderItem.Path.ToString());
string strDeleteFile = strFolderpath + objFolderItem.Path.ToString();
File.Delete(strDeleteFile);//delete cannot
}
•
•
Join Date: Sep 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
CODE
Get "Temporary Internet Files" directory and files)
const int cookies = 32;
Shell32.Folder objFolder;
Shell32.FolderItems objFolderItems;
Shell32.ShellClass objShell;
string strFolderpath = System.IO.Path.GetTempPath().Substring(0, System.IO.Path.GetTempPath().Length - 1) + "orary Internet Files\\";
objShell = new Shell32.ShellClass();
objFolder = objShell.NameSpace(cookies);
objFolderItems = objFolder.Items();
foreach (Shell32.FolderItem objFolderItem in objFolderItems)
{
//MessageBox.Show(strFolderpath+objFolderItem.Path.ToString());
string strDeleteFile = strFolderpath + objFolderItem.Path.ToString();
File.Delete(strDeleteFile);//delete cannot
}[/quote]
Get "Temporary Internet Files" directory and files) const int cookies = 32;
Shell32.Folder objFolder;
Shell32.FolderItems objFolderItems;
Shell32.ShellClass objShell;
string strFolderpath = System.IO.Path.GetTempPath().Substring(0, System.IO.Path.GetTempPath().Length - 1) + "orary Internet Files\\";
objShell = new Shell32.ShellClass();
objFolder = objShell.NameSpace(cookies);
objFolderItems = objFolder.Items();
foreach (Shell32.FolderItem objFolderItem in objFolderItems)
{
//MessageBox.Show(strFolderpath+objFolderItem.Path.ToString());
string strDeleteFile = strFolderpath + objFolderItem.Path.ToString();
File.Delete(strDeleteFile);//delete cannot
}[/quote]
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax apps bbc black friday blog bluetooth broadband business celebration development digg domain download exploits explorer firefox funds google gradient home ie 7 ie7 internet investments malware meltdown microsoft mobile money mozilla network networking news online online shopping phishing portfolio registration science security site software stocks terrorism trends vendor video vr web windows
- Temporary Internet files?? (Windows NT / 2000 / XP / 2003)
- Temporary Internet Files (Windows NT / 2000 / XP / 2003)
- Access to "Temporary Internet Files" folder (Windows 9x / Me)
- how to delete ALL temp internet files, etc. (Windows NT / 2000 / XP / 2003)
Other Threads in the C# Forum
- Previous Thread: Format single Row in datagridview using a value in same row
- Next Thread: Help with a login program


Hybrid Mode