New
#1
.bat file, batch coding simple variable use
okay, so i want the IPaddress variable to be used as the ipaddress to be pinged. When i run this, it is ineffective. Can someone teach me as why and how to properly code this?Code:@echo off color C SET IPaddress=0 set /p IPaddress=Please enter the destination Ip Address: color A ping IPaddress pause
Actually i just figured out how to reference the variable with modulus/percentage symbols.
%IPaddress%