Re: Change Directory

Ramakrishna Vavilala <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
You need to use Environment.CurrentDirectory property.

Environment.CurrentDirectory = <path of new directory>

-----Original Message-----
From: Eric Shiau [mailto:[email protected]] 
Sent: Monday, June 17, 2002 9:42 AM
To: [email protected]
Subject: [DOTNET] Change Directory


My app. requires create a lot of files on a certain directory.  My
immediate thought is first change to that certain directory, then create
files; this way, I don't have to create files with absoulte path, which
is long and ugly, on each files.

Now, how can I change my start up directory to that certain directory on
C#?

Thanks in advance.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.