CODE: [Copy to clipboard]@echo off for /f %%a in ('hostname') do set host=%%a$ net use z: \\ip\%host%