Change the path
In this chapter you will learn:
Change the current path
The following code changes current directory to c:\.
using System;/*from j a va2 s. c o m*/
using System.IO;
static class MainClass
{
static void Main()
{
Directory.SetCurrentDirectory(@"c:\");
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path