473,395 Members | 1,677 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,395 software developers and data experts.

Openning folder in c#

Hi,

I'm trying to open a folder in c# with a given path.
for example i have list of folder path's in my listview.
what i need is when i click on one of them then a window is open
(like if i double click on my computer ...)

Thanks a lot.
Nov 16 '05 #1
1 3647
eyal,

You can probably just pass the folder name to the static Start method on
the Process class, and it should open up a windows explorer folder for that
path. You might have to create a ProcessStartInfo instance, and set the
UseShellExecute property to true as well, but passing the path should do it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"eyal" <st******@hotmail.com> wrote in message
news:1a**************************@posting.google.c om...
Hi,

I'm trying to open a folder in c# with a given path.
for example i have list of folder path's in my listview.
what i need is when i click on one of them then a window is open
(like if i double click on my computer ...)

Thanks a lot.

Nov 16 '05 #2

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

Similar topics

5
by: Tedmond | last post by:
Dear all, How can I get all the titles of all openning windows? I found a API in win32 that called EnumWindows() but it returns only the windows handles, not titles. How can I get the list just...
0
by: eyal | last post by:
Hi, I'm trying to open a window with a given path, like (open conatin folder) with C#. for example i have this path: C:\Temp i have it in my ListView and what i need is when i double click on...
8
by: ablyplus | last post by:
Hi, I am trying to open MS Access DB with c# like follows... OleDbConnection thisConnection = new OleDbConnection( @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + @"..\..\hren.mdb;"...
2
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf); i.e. The DB is not found under the app_data directory. The Question: What configuration...
1
by: Pankajmani das | last post by:
I have developed a program which is need to run automatically when windows/computer start. I have kept my exe file in startup and task folder manually and it work also. Please let me know the code...
2
by: andreguerra | last post by:
Hello. Im using a Console (Operator Panel) that has a built in web server. Im triyng to make a page that opens a file in the console server. Im using this code: var datafile = "DEFAULT.SKV"; var...
9
by: bj19138 | last post by:
How do you have your browser maximized when openning. When I open my Browser it always is minimized.?
3
by: Dlangdaman | last post by:
I have a folder full of (.class) files. I cannot get them to open in NetBeans...why? can you help
1
by: mahesh123 | last post by:
Hi, I am using the VB6.0 and for report crystal reports 8.0. the reports are not openning(means its openning but immediately it is closed the report) when we installed the reports in other system....
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...

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.