Search found 7 matches

by SPM
19 Jun 2013 10:32
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: Help with pinging servers, log failures

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.
by SPM
19 Jun 2013 08:48
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: Help with pinging servers, log failures

Compare the code foxidrive gave you to the code you are trying to use. Can you not SEE where the TYPE command is! For /f "delims=" %%a in (' type "C:\Document.txt" ') do Ping -n 2 %%a >nul || echo %%a offline>>PC.txt For /f "delims=" %%a in ('"\\Server name\Docume...
by SPM
19 Jun 2013 06:59
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: Help with pinging servers, log failures

Squashman wrote:the TYPE command.


@echo off
Should I do Type \\Sever path\ For /f "delims=" %%a in (' type "C:\Document.txt" ') do Ping -n 2 %%a >nul || echo %%a offline>>PC.txt
by SPM
17 Jun 2013 14:06
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: batch file help

@echo off For /f "delims=" %%a in (' type "C:\Document.txt" ') do Ping -n 2 %%a >nul || echo %%a offline>>PC.txt One last question, the above command works great pulling the document from the local C: Drive. Having problems running it from a Network Shared. For /f "delims=&...
by SPM
17 Jun 2013 11:17
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: batch file help

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


Perfect this is just want i need it.

Since i'm here to learn let ask >nul 1 | What does have mean?
by SPM
17 Jun 2013 08:28
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Re: batch file help

Endoro wrote:try this:

Code: Select all

For /f %%A in (C:\Document.txt) Do Ping -n 2 %%A 2>&1 || >>PC.txt 


thanks Endoro but no luck.
by SPM
17 Jun 2013 08:13
Forum: DOS Batch Forum
Topic: Help with pinging servers, log failures
Replies: 15
Views: 13823

Help with pinging servers, log failures

Hey guys looking for some help on the below script. So here is what i'm trying to do, Ping 20-30 PC from a text file, Output the Time Out to a file. Here is what I have, which works just stuck on the Timeout section. For /f %%A in (C:\Document.txt) Do Ping -n 2 Now if I do For /f %%A in (C:\Document...