如何透過命令列將文件從我的電腦複製到另一台電腦?

如何透過命令列將文件從我的電腦複製到另一台電腦?

就像是

cp \\target_machine local_file.txt c:\dest_file.txt

答案1

假設您有適當的權限,您可以這樣做:

copy local_file.txt \\target_machine\c$\dest_file.txt

使用“c$”引用遠端電腦上的 C 磁碟機。

答案2

就像這樣:

copy c:\local_path\local_file.txt \\target_machine\destination_path\destination_file.txt

例如,如果您已\\target_machine\destination_path\對應到網路磁碟機,Z: 則命令將變為

copy c:\local_path\local_file.txt Z:\destination_file.txt

相關內容