File Watcher - get the process name that created a file in Windows?

若如初见. 提交于 2019-12-04 21:23:18

There's always Process monitor which replaces FileMon which will tell you which process is accessing the files in question.

If you want something similar to fuser for windows, you can check out Process Explorer

It won't let you watch a file, but you can see if any current running processes are accessing that temp directory and creating similar named temp files.

I've used FileMon.exe, but in only works on XP.

The only way I've found to do this from .NET programatically is to run Sysinternal's Command-line Handle App and pass the file name in and read the console output to try to catch the source application with an open handle to the file.

Otherwise the utilities others have mentioned would do fine.

MSN

You could always set that directory to read-only and see what throws up. Although if it's a document server you might not want to do that.

\RECYCLER\S-1-5-21-1482476501-1644491937-682003330-1013\service.exe

This is a Recycler Virus. It created a hidden folder called "Recycler" In all disk partitions and i was not able to delete them from windows Safe Mode. Norton, AVG Kaspersky failed to detect it or delete it.

I turn off system restore, rebooted the PC using a Boot disk went to command prompt and deleted "Recycler" folder from all drives. using command rmdir/s c:\recycler

This is the only thing that worked for me on Windows XP.

Just use standard Win32 api (NAPI).

See Adv. Win32 api ng news://comp.os.ms-windows.programmer.win32 for source code (C)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!