Created
January 18, 2012 10:05
-
-
Save ebith/1632271 to your computer and use it in GitHub Desktop.
スタートアップから共有フォルダを開く
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: <設定> | |
:: pathz : \\hostname\folderの形式 | |
:: userz : ユーザー名 | |
:: passz : パスワード | |
:: sleep : 待機秒数 | |
set pathz=\\192.168.0.1\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