-3

I want to know the file name which we are opening. For example:

If we are opening notepad.exe then my program should display that notepad.exe got opened.

If we are opening song.mp3 then my program should display that song.mp3 got open.

If we are opening movie.mpeg then my program must tell that movie.mpeg got open.

If we are opening abc.txt then my program must tell that abc.txt got open.

Here I want to know what files are getting open on my computer.

Please help me out.

Thanks

Rahul Gupta
  • 89
  • 2
  • 9

1 Answers1

0

It's quite difficult to list out all files opened. Take a look at the Listing Used Files solution on Code Project. It lists all the files which are currently open.

Ɖiamond ǤeezeƦ
  • 3,223
  • 3
  • 28
  • 40
Anantha Sharma
  • 9,920
  • 4
  • 33
  • 35
  • Hi, this solution of CodeProject is only showing the programs running but it is not displaying which file i m opening in media player. It is showing wmplayer.exe running but its not showing that movie.mpeg file got openned in media player. – Rahul Gupta Jul 29 '11 at 08:59
  • this might do the trick.. http://groups.google.com/group/microsoft.public.win32.programmer.kernel/browse_thread/thread/228ecaeec5b17957/93759f6c1a02c971?lnk=raot&pli=1 – Anantha Sharma Jul 29 '11 at 11:29
  • Please look at the method `EnumerateOpenedFiles` in the codeproject link i provided, this lists out all files which are open... the application (which is available for download) is capable of listing open files from specific folders as well). – Anantha Sharma Aug 01 '11 at 08:36