Re: Change Directory
Greg Reinacker <[email protected]> Mon, 17 Jun 2002 22:43:02 -0600
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <002301c21682$a19325d0$6401a8c0@rassoc2> |
Uh, ok...did you want the semicolon? Environment.CurrentDirectory = @"c:\"; :-) Greg Reinacker Reinacker & Associates, Inc. 303-683-0506 http://www.rassoc.com -----Original Message----- From: The DOTNET list will be retired 7/1/02 [mailto:[email protected]] On Behalf Of Shiau, Eric Sent: Monday, June 17, 2002 8:25 AM To: [email protected] Subject: Re: Change Directory 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. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.