【发布时间】:2013-08-23 09:18:53
【问题描述】:
我正在尝试将我工作目录中的 local text file 复制到其他 remote desktop
这就是我在here提到的尝试做的方式
ExecuteCommand("Copy" & Directory.GetCurrentDirectory & "\Output\Files.txt \\myservername -u username -p password C$\Files.txt")
Public Sub ExecuteCommand(ByVal Command As String)
Dim ProcessInfo As ProcessStartInfo
Dim Process As Process
ProcessInfo = New ProcessStartInfo("cmd.exe", "/K" & Command)
ProcessInfo.CreateNoWindow = True
ProcessInfo.UseShellExecute = True
Process = Process.Start(ProcessInfo)
End Sub
我收到此错误:
The filename, directory name or volume label syntax is incorrect
【问题讨论】: