Saved Bookmarks
| 1. |
Solve : help to create a file batch for tracert? |
|
Answer» Hello, my name is matteo. I want to create a file BATCH for tracert. On a text file I have a list of IP addresses that do tracert. I would LIKE to create a batch file that executes the tracert ip of these, providing input in this txt file and GETTING output a txt file with the LOG of the tracert. Can you help me? I have no idea how to do !!! please it's very important for me. Hello, my name is matteo. I want to create a file batch for tracert Welcome to the forum matteo. We can help you create a batch file - but you will have to tell us what you want in the log file. Do you want the entire tracert output, and that is all? A for /f loop will let you read the list of IP addresses in the text file.thanks for the answers. In the log file I want the entire tracert output. In my .txt IP addresses are a variable number, and remain the same in each simulation, but between different simulations change in the number and type. I need to perform a command similar to: C: \ User \ DESKTOP \ Work \ tracertscript.bat Source IP.txt where tracertscript.bat is is the script that I want to create and SourceIP.txt is the list of IP (the input script). not having the basics of programming I desperately need your help, thanks so much Matteo This may help - test it on your end: Code: [Select]echo off for /f "usebackq delims=" %%a in ("c:\folder\file.txt") do tracert %%a >>file.log greeeaaaat tnx |
|