2
1
I made a batch file that takes various inputs and then uses them in the commands ahead. This script works fine on my computer but when I put this script on another computer and use PsExec.exe to remotely execute this file... it doesn't work like it was working... The batch file runs fine if executed on the same computer... this error only occurs on network.
It's supposed to take to inputs and use them like..
set /p ip=Enter the ip: [The user enters 192.168.1.1]
set /p sub=Enter the sub: [The user enters 255.255.255.0]
echo %ip% sub net mask %sub%
It should echo
192.168.1.1 sub net mask 255.255.255.0
instead it echos
1 sub net mask 2
it doesn't even stop to take the other input. In simpler words its only taking the first character of anything that is entered. Any help?