chdir from a C# console application

G

Giulio Petrucci

Hi there,

Hi have a console application which shoul "know" from where I'm running
it. I thought it was a good idea to run a sort of "chdir" command from
the application itself, but I don't know how to do it. Any suggestion?

Thanks in advance,
Giulio - Italia
 
J

Jon Skeet [C# MVP]

Hi have a console application which shoul "know" from where I'm running
it. I thought it was a good idea to run a sort of "chdir" command from
the application itself, but I don't know how to do it. Any suggestion?

Try setting Environment.CurrentDirectory.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top