Delete Temporary files from VC++
This tip allows you to delete all temporary file created by Visual Cpp Development Environment. You just need to configure temporary extension in the registry and to you it To use this tips, you will have to right click on a "folder" . It will delete all VC++ temporary files including sub directories.
Check out following registry location:-
REGEDIT4
[HKEY_CLASSES_ROOT\Folder\shell\Delete Temp VC++ files]
[HKEY_CLASSES_ROOT\Folder\shell\Delete Temp VC++ files\command]
@="\"cmd.exe\" \"/c del /s *.obj,*.res;*.pch;*.pdb;*.tlb;*.idb;*.ilk;
*.opt;*ncb;*.sbr;*.sup;*.bsc\""
___________________
Tip courtesy - Ernest Laurentin
How to iterate through the subkeys in the registry location?
To enumerate the subkey of any given key you have RegEnumKey and RegEnumKeyEx function, the given use ATL::CRegKey which encapsulate basic registry window api.
This code that will enumerate all the key under HKEY_CURRENT_USER\Software, m_enumStrArray contain all enumerated keys
CRegKey m_hRegKey;
CStringArray m_enumStrArray;if( m_hRegKey.Open(HKEY_CURRENT_USER,"Software")==ERROR_SUCCESS)
{
    DWORD dwSize=MAX_PATH,dwIndex=0;
    TCHAR tcsStringName[MAX_PATH];   while(RegEnumKey( m_hRegKey.m_hKey,dwIndex,tcsStringName,dwSize)==ERROR_SUCCESS)
    {
      //sub key name
        m_enumStrArray.Add(tcsStringName);
        dwIndex++;
       dwSize=MAX_PATH;
     }
}
How to get information about all installed software of my PC ?
 All the Information of Installed Software on local system can be find at HKEY_LOCAL_MACHINESOFTWARE\Microsoft\Windows\Current Version\Uninstall
you have to Enumerate the registry Key to know each installed Software and For Enumertaion of registry key you can use these API:
- Â Â Â Â RegEnumKey
- Â Â Â Â RegEnumKeyEx
How do we run an EXE file at Windows startup?
There many Option to achieve same, some of them are :-
Â
1. Make a shortcut in the Start >> Programs >> Startup
2. Add path (string value) of your EXE to following location in the registry:
   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
   HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
3. These two are use rarely, just for reference
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
    (Running Only Once)
     HKEY_LOCAL_MACHINE\ Software\ Microsoft \ Windows \ CurrentVersion \ RunServices
Search
Post Calender
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
Tags
Categories
- COM/ATL
- CSharp
- CSharp Code Snippet
- Database
- Dialog Based
- DLL
- General
- Hardware
- IPC
- Lim Bio Liong
- Managed VC
- MFC
- Networks
- Registry Related Stuff
- Smart Device
- STL
- System
- Visual Basic
- WF
- Win32
- WIN32_&_VC_NET
- WindowMedia
Pages
Recent Posts
- How to declare pointer to member function ?
- String Manipulation!
- IPC: Using Window Message
- Using IComparer interface in Managed C++!
- IPC: Using Memory Mapped Files!
Disclaimer
VisualCpp.org thanks those Volunteers who devote there precious time in helping others...Information provided here Is As Is, without any warranty, therefore use it at your own risk [:)] !
Google Adsense and Counter
Meta
Lightword Theme by Andrei Luca Go to top ↑