Squashman wrote:What is the different between these two commands? It should be pretty obvious. HINT: TYPE is MISSING!!!!!!!!!!!
' type "C:\Document.txt" '
'"\\Server name\Document.txt" '
I get it thanks, new trying to learn.
Squashman wrote:What is the different between these two commands? It should be pretty obvious. HINT: TYPE is MISSING!!!!!!!!!!!
' type "C:\Document.txt" '
'"\\Server name\Document.txt" '
Squashman wrote:the TYPE command.
foxidrive wrote:Code: Select all
@echo off
For /f "delims=" %%a in (' type "C:\Document.txt" ') do Ping -n 2 %%a >nul || echo %%a offline>>PC.txt
Endoro wrote:try this:Code: Select all
For /f %%A in (C:\Document.txt) Do Ping -n 2 %%A 2>&1 || >>PC.txt