Add share from Linux

This commit is contained in:
wchen-r7 2017-04-07 14:33:30 -05:00 committed by James Barnett
parent 78ead4c361
commit 848c23898e
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
@echo off
ping -n 1 -4 172.28.128.3 | find /i "TTL=" > nul
IF ERRORLEVEL 1 (echo "Linux host not available.") ELSE (
cmdkey /add:172.28.128.3 /user:chewbacca /pass:rwaaaaawr5
net use W: \\172.28.128.3\public /savecred /p:yes
)