473,947 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Detect the Currently Opened Files in VB.net for Media Centre

5 New Member
Hi Guys,

I am writing a Media Centre Addin in Vb.net and it was all going good until i got to the point where i want to find the "Currently Playing song FilePath or URl"

I have spend a number of hours racking my brain to figure out a way of seeing what the "Currently Opened Files" are on a machine at any point of time.

My idea is to get all the currently opened files, and then filter the Extensions from these and find the media item that is currently playing, and get the filepath..

Does anyone know how i can do this? and what methods or classes or Librarys i should be looking at or importing In.. This one has really got me thinking.

I was looking at the WMI Windows Management controls, but cant seem to find what i am looking for.. any help would be great..

Cheers

Robbie
Apr 8 '09
10 5123
aumsoft
2 New Member
Hi frinavale....

Sorry to not explained well my question but i am looking for to check whether the file is open or not by other process included notepad, paint etc. I dont want check that file is exist or not. By the way we have resolve the issue of exception of "ObjectDisposed Exception: Safe handle has been closed". But after using this function we are not able to end/close the application even in from task manager by calling end process. Also awaiting for solution to run on vista64 OS.

Regards
Apr 28 '10 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

23
6548
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I know if Window.Open has been redefined? BACKGROUND:
2
3056
by: FE | last post by:
Hi, I need to create a program that will connect a media stream (a server on the internet - Windows Media format) and then generate an error when : * The stream is ok but there is no sound (for example when someone disconnected the mic) * The stream is ok but there is no more images In these to cases, I imagine the encoding server is still working fine but
0
1055
by: David Buckley | last post by:
I remember seeing an app on a site that had the basic look and feel of media centre i was wanting to find the app again to start buidling a media centre for a home project can anyone point me in the right direction i think it was on gotdotnet but can no longer find it Many thanks David Buckley
0
1039
by: David Buckley | last post by:
I remember seeing a small example on gotdotnet about a year ago it was done in c# 1.1 and it showed you how to make forms appear like media centre is their a component or if anyone knows of where i cant get a sample app that allows me to implment that style . Also is their any components out their to access happauge cards from within your own application at all. ????
2
1169
by: =?Utf-8?B?U3UgbmVpbA==?= | last post by:
My media centre will only let me create data dvd's and not slideshow dvd's can anyone help with a solution. I have a dell dimension 9150 and media centre 2005
4
1826
by: OrchidNut | last post by:
Hi, need to have a new notebook and want to avoid Vista. XP pro is my favourite but hard to get on a notebook. I can get XP Media Centre 2005 but not interested in entertainment. Is it possible to upgrade the Media Centre version to XP Pro as someone suggested? Thanks in advance.
0
1118
by: =?Utf-8?B?Q2hyaXNzaWUgUg==?= | last post by:
Help! Would you believe have just bought my first MP3 player (mind you I am in my fifties). Although not a computer whizz - I manage to do most things on my PC. Loaded CDs onto Windows Media Centre - when i push 'sync' box comes up saying 'windows media centre has to shut down'. Also icon at bottom of screen representing windows media connect has a cross through it and if i click on it it says 'folder sharing has been stopped. A...
1
2237
by: dgb09 | last post by:
Hi guys, Im trying to write a program in C++ using windows with an interface that is similar to either media centre or sony's XMB where there are 3 layers of menus, with the lower 2 layers driven by database values, so that the 2nd and 3rd layers are filtered to display a list of options based on the previous. eg. Top layer lists Genre, Year, Title 2nd layer lists the available genres 3rd layer lists the titles available within the...
36
5438
by: Don | last post by:
I wrote an app that alerts a user who attempts to open a file that the file is currently in use. It works fine except when the file is opened by Notepad. If a text file is opened, most computers are configured to use Notepad to open the file by default and if they are configured to use Notepad by default I want it to remain that way rather than retrieve the text into my app or force the user to use another app to read the file. I'm...
0
10162
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11153
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11342
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6331
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4943
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3541
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.