Created
December 13, 2018 18:22
-
-
Save rafabarzotto/b92bb53311f96be3c65e0f0f4d3f5bef to your computer and use it in GitHub Desktop.
Auto Mapping LPT port windows
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 | |
for /f "tokens=1,2,3 delims= " %%a in ('net use ^| find "entradas"') do ( | |
echo Mapping LPT5 to \\localhost\GenericText | |
net use LPT5 \\localhost\GenericText /persistent:yes | |
) | |
for /f "tokens=1,2,3 delims= " %%a in ('net use ^| find "dispon"') do ( | |
echo Remapping %%c to \\localhost\GenericText | |
net use %%c \\localhost\GenericText /persistent:yes | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment