New
#1
Why is my batch script freezing? (windows 7)
This is not the entire script but this the line that is freezing, i'm just trying to compile some basic information from the computers in my domain with this login script.
When running just this line as a bat file it will hang until closed and when you attempt to close CMD it lags up and displays a bunch of C^C^C^C^ before doing so.
for /f "tokens=3 delims=," %%a in ('"getmac /v /fo csv | findstr Ethernet"') do echo %%a
This command works perfectly when pasted into CMD prompt so why does it freeze when I make into in a .bat ?
also inserting exit at the end does not help, the script never gets past this command and just hangs there.