0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windowsのコマンドプロンプト(bat)でネットワークドライブの割当と切断

Last updated at Posted at 2023-08-09

やり方(割当)

ユーザー名とパスワードを指定
rem 『\\server\d01』を『X』という名前のネットワークドライブに割当
rem 接続は『namae』というユーザー名。
rem ユーザーのパスワードは『pasuwado』
net use X: \\server\d01 /user: namae pasuwado

ユーザー名とパスワードを省略した場合はWindowsにログインしている情報で割り当てにいきます。

ユーザー名とパスワードを省略版
net use X: \\server\d01

やり方(切断)

ユーザー名とパスワードを省略版
rem 『X』という名前のネットワークドライブを切断
net use X: /delete

参考サイトさん

バージョン

Microsoft Windows [Version 10.0.19045.3271]

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?