0

.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

また、機能しません。

何が問題になる可能性があります。

4

1 に答える 1

0

共有をマッピングしてから、使用する前にそのドライブに変更してくださいxcopy

net use M: \\the-ip-of-the-remote-computer mypassword /myuser
pushd M:\
xcopy folder\filetocopy C:\yourcdrivefolder
于 2012-12-14T10:15:12.690 に答える