In My source code folder near they are lot of TMP file(temporary file Creating) so how to stop that all

Dani AI

Generated

Temporary .tmp files in a source folder usually come from whatever tool has the files open: an editor/IDE, a compiler/build step, cloud-sync (OneDrive/Dropbox), or antivirus/backup software. The filename you posted (VB1C1.tmp) hints at a Visual Basic–related tool, but filename patterns alone are not definitive. and were on the right track: the first step is to identify which process actually creates the files before changing anything.

A reliable way to find the creator is Process Monitor (Procmon). Run it elevated, clear the display, then add filters so you only see activity under your project path and CreateFile operations. Reproduce the condition (save, build, open a file) and watch the Process Name column to see which program writes the .tmp files. Download and documentation are available from Sysinternals: Process Monitor. Alternatives for quick checks are Windows Resource Monitor (search handles) or the Sysinternals Handle utility.

Once the creating process is known, take targeted action: disable or change that tool's auto-save/backup location, exclude the project folder from cloud-sync or antivirus scanning, or reconfigure the IDE to use the system TEMP folder. To avoid version‑control noise add a rule like *.tmp to your ignore file (see the gitignore documentation). Only delete .tmp files after closing editors and confirming no process holds them. Example PowerShell to remove .tmp files older than 7 days:

Get-ChildItem -Path "C:\path\to\project" -Filter *.tmp -Recurse |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-7) } |
Remove-Item -Force

Always commit or back up source before mass deletion.

Recommended Answers

All 3 Replies

How the temporary files being created ?

Is it the application that is creating those for any specific reason ?

are all those .TMP files or any other binary file ?

The file like name VB1C1.tmp

I am not sure what is going on at your end, but it is really difficult to guess the exact root cause.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.