Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Ok, so i was doing some research, and i came upon a post here along time ago, and i was wondering if you see anything wrong with this. When i run the program, you will see below what errors i get. If any one can help that would be great!
:: multiIP.bat
@echo off > pingLOG.txt
type "C:\Documents and Settings\ssimmons\My Documents\Printer Ping Log and batch"
pausefor /f "tokens=*" %%I in ("C:\Documents and Settings\ssimmons\My Documents\Printer Ping Log and batch") do call :pinger %%I
goto :eof:pinger
echo %TIME% >> pingLOG.txt
ping %1 >> pingLOG.txt
:: DONE
This is the outcome....Access is denied.
Press any key to continue . . .
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.

I suppose "mspro sp 2" means XP.
The reason for this error: "The process cannot access the file because it is being used by another process." is because you're trying to read and write the file at the same time.
well... pretty confusing.
If what you want is to ping a list of IPs and keep a log, try this:
::== ping a list of IPs and log
@echo off > pinglog
setLocal EnableDelayedExpansionfor /f "tokens=* delims= " %%a in (IPlist.txt) do (
echo -------------- >> pinglog
echo %date% %time% >> pinglog
ping %%a >> pinglog
)
::== DONE
=====================================
If at first you don't succeed, you're about average.M2

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |