473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting WINDOWS Media folder

Lex
Is there a way in C# to get the windows/media drive/location? I
looked in the SpecialFolder enum but saw nothing helpful.

Regards
Nov 16 '05 #1
3 3228
You mean the Window Media Player folder or the My Pictures/My Movies folder?

"Lex" <de**@homerlex. mailshell.com> wrote in message
news:c5******** *************** *@posting.googl e.com...
Is there a way in C# to get the windows/media drive/location? I
looked in the SpecialFolder enum but saw nothing helpful.

Regards

Nov 16 '05 #2
Or do you mean the original location where the Windows installation media
(aka the installation CD) was during the OS install?

Ryan Gregg
"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
You mean the Window Media Player folder or the My Pictures/My Movies folder?
"Lex" <de**@homerlex. mailshell.com> wrote in message
news:c5******** *************** *@posting.googl e.com...
Is there a way in C# to get the windows/media drive/location? I
looked in the SpecialFolder enum but saw nothing helpful.

Regards


Nov 16 '05 #3
Lex
I am refering to the folder containing all the system .wav files. On
my machine it is c:\windows\medi a
"Peter Rilling" <pe***@nospam.r illing.net> wrote in message news:<#7******* *******@TK2MSFT NGP10.phx.gbl>. ..
You mean the Window Media Player folder or the My Pictures/My Movies folder?

"Lex" <de**@homerlex. mailshell.com> wrote in message
news:c5******** *************** *@posting.googl e.com...
Is there a way in C# to get the windows/media drive/location? I
looked in the SpecialFolder enum but saw nothing helpful.

Regards

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1296
by: bj daniels | last post by:
I am trying to get the number of .jpg files in a given folder (to pick a random one). The folder is referenced by a url - how can I do this. I have tried the code below - but get an error that URLs are not accepted. Dim files As String() = System.IO.Directory.GetFiles(dir, "*.jpg") result = files.Length thanks
2
1578
by: Valerian John | last post by:
Hello: In ASP.NET, how can one get the properties (length of audio clip, length of video clip, dimensions of gif or jpg, etc.) for any given file? I am primarily interested in media files. One can see these properties in Windows Explorer's File properties (Summary tab). TIA, Val
5
4574
by: Paul Fi | last post by:
I have this code which tries to obtain the number of items in the current playlist of windows media player: private void MainForm_Load(object sender, System.EventArgs e) { // get Window handle wnd = Win32.FindWindow("WMPlayerApp","Windows Media Player"); wnd = Win32.FindWindowEx(wnd, 0, "WMPAppHost", null); wnd = Win32.FindWindowEx(wnd, 0, "WMP Skin Host", null); wnd = Win32.FindWindowEx(wnd, 0, "CWmpControlCntr", null);
1
3228
by: Paul Fi | last post by:
im writing a C# program that tries to get the currently playing song in a seperate windows media player instance (external app) i found out that there might be a way to do that using the windows messaging system. some how i was able to use the win32 funtion findwindow() to get the handle
1
2100
by: stever412 | last post by:
Hi I have installed Vista Ultimate on a new XP box, without setting up the Windows Media Player, I use the msdxm.ocx component in my VB 6.0 application. After installing Vista and then running Windows Media Player 11.0, the msdxm.ocx is only 4k in size and normally it is 484k, so my app doesn't player any .avi files in it. And I can't copy the old msdxm.ocx into c:\windows\system32 folder, does WiMP or Vista not handle this component anymore,...
0
1113
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...
3
1725
by: Robert Dunlop | last post by:
I am using Microsoft Visual Studio 2005 for development of an ASP.NET site, and I have a problem that greatly effects my workflow at times. It seems that after I upload new files anywhere within the directory structure of the site that is visible to VS, the next time I perform a build VS takes extra time, apparently downloading the new files (though the time required seems much longer than a one-time download should take). During this...
0
9568
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
10156
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
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3
2805
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.