Skip to content

Instantly share code, notes, and snippets.

@ebith
Created Jan 18, 2012
Embed
What would you like to do?
スタートアップから共有フォルダを開く
@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