its simple we all know what the double colom is for yet im trying to make a script possible for everyone to connect said client via a batch…
@echo off
FOR /F "delims=: tokens=2" %%a in ('ipconfig ^| find "IPv4"') do set _IPAddress=%%a
winvnc.exe -run
timeout 1 >nul
winvnc.exe -connect %_IPAddress%::8080
using this tho is making the command prompt ignoring the port which is bad
it works when i put instead of the %_IPAddress% simply my IP but thats not what i want i need the script to automatically insert the IP of the user executing the script
New contributor
Ani. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.