因此,要将文件移动到另一个文件夹,您可能会执行以下操作:
File.Copy(openFileDialog.FileName,
Path.Combine(targetPath, Path.GetFileName(openFileDialog.FileName))
Run Code Online (Sandbox Code Playgroud)
targetPath
到目标位置的UNC路径在哪里.
归档时间: |
|
查看次数: |
2901 次 |
最近记录: |