Re: Change Directory

"Shiau, Eric" <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <11132EC4122667-01@MMS__lehman.com_>
Is any way do it programatically?

-----Original Message-----
From: Ramakrishna Vavilala [mailto:[email protected]]
Sent: Monday, June 17, 2002 9:44 AM
To: [email protected]
Subject: Re: [DOTNET] Change Directory


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.


------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.

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.