473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting a list of file types

JD
Hi all,

Can anyone tell me is there a way to get a list of file types either
supported on the server or clients computer and bind it to a drop down list
in C#

Thanks

Jonathan Dixon
Nov 18 '05 #1
6 1729
Define "supported."

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"JD" <jo**@ukonline.co.uk> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Can anyone tell me is there a way to get a list of file types either
supported on the server or clients computer and bind it to a drop down list in C#

Thanks

Jonathan Dixon

Nov 18 '05 #2
JD
Well what i think i mean is if you open a browser window and click tools,
folder options then File Types it shows a list of files , is there a way to
get the file extentions into a drop down list.

Regards
Nov 18 '05 #3
I don't know of any API to do it but you could look in the registry

the problem is that there will be hundreds of registered file types, most of
which willl be of no interest to a user of the app

"JD" <jo**@ukonline.co.uk> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Well what i think i mean is if you open a browser window and click tools,
folder options then File Types it shows a list of files , is there a way
to
get the file extentions into a drop down list.

Regards

Nov 18 '05 #4
First of all, I opened my Internet Explorer, and for the life of me I
couldn't find "Folder Options" under Tools, or anywhere else. Now, if you
open My Computer or Windows Explorer, you can certainly get a list of File
Types that are recognized by the local Operating System. This comes from the
machine's System Registry, and is used by the local Operating System to
automatically recognize what software is needed to work with the various
File types.

While it would certainly be possible to write server-side code that accesses
the System registry on the server machine, and return all of the data store
in there about the various file types recognized by the server's OS, I can't
for the life of me figure out what use that would be to you or anyone else.
It is a local machine thing, not even a LAN thing. Putting it into a
drop-down list on a remote client's browser seems rather silly.

May I ask what the purpose of this would be?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"JD" <jo**@ukonline.co.uk> wrote in message
news:#R**************@TK2MSFTNGP14.phx.gbl...
Well what i think i mean is if you open a browser window and click tools,
folder options then File Types it shows a list of files , is there a way to get the file extentions into a drop down list.

Regards
Define "supported." --
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living "JD" <jo**@ukonline.co.uk> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Can anyone tell me is there a way to get a list of file types either
supported on the server or clients computer and bind it to a drop down

list
in C#

Thanks

Jonathan Dixon

Nov 18 '05 #5
Perhaps if you could tell us what business requirement you're trying to
fulfill, we can provide you with some realistic suggestions as to how to
implement a solution.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"JD" <jo**@ukonline.co.uk> wrote in message
news:#R**************@TK2MSFTNGP14.phx.gbl...
Well what i think i mean is if you open a browser window and click tools,
folder options then File Types it shows a list of files , is there a way to get the file extentions into a drop down list.

Regards

Nov 18 '05 #6
JD
The reason i need a list of files is for a file manager to run internally on
a network.

The idea being you create a rul selecting from a drop down list the type of
file and create a rule as to where on the server these files are to be
stored.

e.g

when a user logs on they can try and upload a file, if the extention has a
rule it will send the uploaded file to a directory on the server if not the
user is forwarded to page which has a dropdown list of file types, they then
select the type of file they wish to upload and the directory on the server
they wish to save the uploaded file to, next time the user want to upload a
file with the same extention it goes straight to the folder it was assigned
to when creating the rule.

An example of a rule would be

..gif is uploaded to C:\filemanager\images
..mdb is uploaded to C:\filemanager\AccessDatabases.

If you require furthere clarification please dont hesitate to ask.

It is just a simple solution to make storing files more simple and easy to
navigate to the file type you are looking for.

Regards

Jonathan Dixon
Nov 18 '05 #7

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

Similar topics

20
by: Mark Hahn | last post by:
Prothon is pleased to announce another major release of the language, version 0.1.2, build 710 at http://prothon.org. This release adds many new features and demonstrates the level of maturity...
17
by: Grant Edwards | last post by:
I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The only thing I can...
90
by: Christoph Zwerschke | last post by:
Ok, the answer is easy: For historical reasons - built-in sets exist only since Python 2.4. Anyway, I was thinking about whether it would be possible and desirable to change the old behavior in...
35
by: Thierry Loiseau | last post by:
Hello all, and Happy end year 2005 ! Well, I would like to obtain a list of all JavaScript var statement, With "for...in" perharps ? That is bellow my recent test here, but the problem is...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
1
by: desivirus | last post by:
hi admin.. i followed your tip in "HOW TO LIST PROCESS ID IN WINDOWS" thread..and iam trying to compile this code in cygwin , $gcc -mno-cygwin process.c -o -L"psapi.lib" process.exe psapi.h...
0
by: Atos | last post by:
SINGLE-LINKED LIST Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be...
4
by: mh | last post by:
I want to iterate over members of a module, something like: for i in dir(x): if type(i) == types.FunctionType: ... but of course dir() returns a list of strings. If x is a module, how can I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.