How do I make this batch file?
September 15, 2010 11:43 AM Subscribe
Batch file hell. I'm trying to write a batch file to......
...run three commands and output to a text file. Specifically, I want to run "ping" (ping an IP that has to be input by the user), then tracert (same IP), then "pathping" (same IP). This would have to be dumped out to a text file on the user's drive.
I've tried a number of variations cobbled together from my own feeble knowledge of batch files and what I've found on the Googles but can't seem to get it to work. The user imput part is where I'm stumbling.
Any ideas or samples? Thanks!
posted by KevinSkomsvold to computers & internet (8 answers total) 6 users marked this as a favorite
@echo off
ping %1
tracert %1
pathping %1
...and run as "name.bat x.x.x.x".
Not sure about the file redirect bit.
posted by jquinby at 11:49 AM on September 15, 2010