Skip to content

Instantly share code, notes, and snippets.

Created Jan 18, 2012
What would you like to do?
@echo off
:: <設定>
:: pathz : \\hostname\folderの形式
:: userz : ユーザー名
:: passz : パスワード
:: sleep : 待機秒数
set pathz=\\\HOGE
set userz=USERNAME
set passz=PASSWORD
set sleep=30
ping localhost -n %sleep% > \nul
net use "%pathz%" /delete
net use "%pathz%" /user:%userz% %passz%
start explorer "%pathz%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment