473,398 Members | 2,088 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,398 software developers and data experts.

C# code to open a windows directory

Hi All,

I need the C# code to open a windows directory.

Regards,
Shilpa

Mar 22 '06 #1
3 14925
System.Diagnostics.Process.Start("C:\\");
Mar 22 '06 #2
Hello yogeshprabhu,

y> System.Diagnostics.Process.Start("C:\\");

only for System.Environment.ExpandEnvironmentVariables("%Wi nDir%"); directory

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 22 '06 #3
you can use System.IO namespace

look on the msdn in that namespace and it has a number of classes to
manipulate files/directories if thats what your're looking for

Mar 22 '06 #4

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

Similar topics

4
by: Abhishek Srivastava | last post by:
Hello All, Many people ask this question. I have installed .Net framework I wrote a program but I can't find csc.exe. I have to tell them that it is inside windows directory. But I myself don't...
2
by: Paul Steele | last post by:
Is there any way to check for open Explorer windows and if any are found, tell Windows Explorer to close them. I don't want a brute force method of killing Explorer and letting it restart. I'd...
0
by: J. Ahorn | last post by:
Hi there! With System.Environment.GetEnvironmentVariable("windir") I get the windows-directory (e. g. c:\winnt). At Terminal-Server (W2K) each user has its own windows-directory in c:\dokuments...
13
by: Mike Fellows | last post by:
im trying to open a directory (as if i had browsed to the directory in windows) from code im checked system.io.directory but there doesnt seem to be an open command (or similar) is there an...
3
by: Shelby | last post by:
Hi, is there a better way to get the Windows directory? I manage to get the system directory with : System.Environment.SystemDirectory So I was wondering how do I get the Windows directory?
2
by: Shilpa | last post by:
Hi All, I need the C# code to open a windows directory. Regards, Shilpa
7
by: lakshmi | last post by:
Hi all, i need to open multiple files that are in directory and parse each file.iam using c language in VC++ compiler.how can i open a directory.i tried it by including header file dirent.h.but...
13
by: robert.waters | last post by:
Do you have your users rely on the windows taskbar to manage/navigate between the forms they have open, or do you provide another (more robust) method? Does anyone use a custom navigation system...
2
by: marcusadeleon | last post by:
Hi, I was wondering how to open up a web directory to get a file listing. The directory I want to open allows directory listings, but has a directory password. Meaning it gives me a prompt to...
2
MrPickle
by: MrPickle | last post by:
I am trying to get all open windows on windows. I have looked around and seen that I should use EnumWindows and EnumWindowsProc so I whipped up this code to test it but it tells me there's 300-400...
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
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
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,...
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...
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...
0
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,...

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.