> > How do you select a drive to write a file to?
In Visual Basic it is
ChDrive("D")
where D is the new drive letter. How do you do it in C#?
I could not find it in the msdn Library or at the Visual C# .NET Support
Center.
In case anyone wonders how the question came up, this is actually an echo of
DOS 1.0 and 1.1. Before DOS 2.0 (1983), there were no subdirectories and
instead of selecting a current directory, all you could do was select drive
A or B (first or second diskette). (No hard disks in those days either.)
Nowadays you can still select current disk, and there is (at all times) a
current directory selected on each disk. So your complete current directory
at any given time = the current disk + the selected directory on that disk.
Nowadays some files are on a network path (such as \\blah\blither) and not a
drive letter at all.