Skip to content

Instantly share code, notes, and snippets.

@ebith
Created January 18, 2012 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebith/1632271 to your computer and use it in GitHub Desktop.
Save ebith/1632271 to your computer and use it in GitHub Desktop.
スタートアップから共有フォルダを開く
@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