Home > OS >  Bat file, the new folder name cannot be set to the IP address
Bat file, the new folder name cannot be set to the IP address

Time:09-24

@ echo off
For/f "tokens delims==2:" % % I in (' ipconfig ^ | findstr searches/I "IP address" ') do set IP=% % I
Echo IP % %
: : normal display IP
IP md c: \ % %
: : the name of the folder can't display, how to change

CodePudding user response:

String a space more, remove the line,
  • Related