I'm rewriting a small utility app that, amongst other tasks, copies files
from the local machine to servers on the local network. The existing
implementation executes a batch file that executes the "net use" command to
map a drive to each destination server/share. The program then tests via "if
(File.Exists())" to ensure that the mappings were successful.
I'd like to find a better way to copy the files out to the servers... and
eliminate the batch file and "net use" altogether if possible.
Is there an easier way to map drive letters than via batch file and net use?
Is there a way to copy files without mapping a drive letter at all?
I'm developing this with .NET 3.5 beta 2, C#, and the app is to run on
Windows Server 2003.
Thanks!