.bat
リモートデスクトップからファイルを実行しようとしています。
次のコマンドを実行して実行します。
net use m: \\the-ip-of-the-remote-computer mypassword /myuser
// Execution works well
次に、リモート デスクトップから自分のコンピューターに xcopy を試みます。だから私はこれを書きます:
net use t: \\the-ip-of-the-remote-desktop mypassword /myuser
xcopy \\the-ip-of-the-remote-computer my-libary
ただし、場合によっては、このコマンドがうまく実行されないことがあります。
私もこれを試してみましたが、うまくいきません:
net use m: \\the-ip-of-the-remote-desktop mypassword /myuser
xcopy net use t: \\the-ip-of-the-remote-computer mypassword /myuser my-libary
また、機能しません。
何が問題になる可能性があります。