I am trying to run some bat command that opens another CMD instance, to run a command within it. On my computer this code runs no problem:
mypc.bat
cmd /k "ping www.google.com -t"
But, if I bring over the bat file to my other PC, which is running the same Windows OS version it doesn’t work. I have tried two variations of the bat file that works okay on the one PC
otherPC.bat
cmd /k "ping www.google.com -t"
or just straight up
ping www.google.com -t
6