Thanks for the reply, I plugged in what you linked, but it's not finding any string. for /f "tokens=3 delims=." %%a in ('ipconfig ^|find "192.168"') do set "_var=%%a" SET _var=%_var:~25,-4% net use z: \\192.168.%_var%.30\test_folder PAUSE ... Do stuff net use z: \DELETE...
Hi guys, I'm trying to write a batch script for windows XP. It needs to call ipconfig and build an IP address from the (192.168.XXX.30) XXX part of the address and supplanting it into a template. Then runs some fun stuff from a network shared folder. SET _var=ipconfig |FIND "192.168" SET _...