顯示具有 Windows 標籤的文章。 顯示所有文章
顯示具有 Windows 標籤的文章。 顯示所有文章

Windows 指令連結網路硬碟機

Connect Network Drive

To map a network drive from windows command line:

Click Start, and then click Run .

In the Open box, type cmd to open command line window.

Type the following, replacing Z: with drive letter you want to assign to the shared resource:

net use Z: \\computer_name\share_name /PERSISTENT:YES


Disconnect Network Drive

To disconnect a mapped drive:

Open command line window.

Type the following, replacing X: with drive letter of the shared resource:

net use  Z: /delete

FreeBSD mount_smbfs

FreeBSD 掛載 windows 網路硬碟(網路芳鄰)


1.先在FreeBSD建立一個要掛載的資料夾,假設我在/mnt下新增一個資料夾叫james
例: /mnt/james


2. 使用mount_smbfs 指令來掛載 windows網路硬碟

mount_smbfs -I [IP Address] '//[username]@[sharehost]/[folder]' [node]

例:
IP: 192.16.128.1
username: jamesli
sharehost: james-home (192.16.128.1)
folder: james
node: /mnt/james

#mount_smbfs -I 192.16.128.1 '//jamesli@james-home/james' /mnt/james 

執行後會要求輸入密碼,完成後會掛載到/mnt/james下.
這時,你就可以cp, mv了!

參考來源
http://delphi.ktop.com.tw/board.php?cid=165&fid=900&tid=87113
http://kmterry.blogspot.com/2009/08/freebsd-windows.html