我将编写 C# 代码来检查 C、D、E...(Windows 磁盘驱动器)是否存在?最后找到客户端窗口中存在的驱动器,将我的文件复制到那里。
我想编写类似于以下逻辑的代码:
If ( !Exist(Drive "C:\" ) )
{
If ( !Exist(Drive "D:\" ) )
{
If ( !Exist(Drive "E:\" ) )
{
...
search to fined existence drive
copy file to a path of that existence drive
}
}
}