Why is this in the Unix section? I know Unix can run Shell scripts but isn't the syntax different than batch somewhat?
Also, on a side note, I took the liberty of re writing the script so it outputs to a log file and will continue to use the same file as long as the log file exists. Each time you run the script, it will output to the log file (or create a new one if the old one was deleted) with a date and time stamp above it so you can easily see when each test was run. I also colored the text to match the black and blue theme of the site.
@Echo off
Title IMVU Mafias IMVU Connection Test (Ping)
Color 09
::Start Ping
Echo Starting Ping
Echo.
Echo Please wait till you see the done message before closing.
::Store the date and time into a variable and display it.
FOR /F "tokens=*" %%A IN ('DATE/T') DO FOR %%B IN (%%A) DO SET Today=%%B
FOR /F %%A IN ('TIME/T') DO SET Now=%%A
Echo ================ >> Results.txt
Echo %Today% %Now% >> Results.txt
Echo ================ >> Results.txt
Ping -n 10 imvu.com >> Results.txt
Echo. >> Results.txt
Echo. >> Results.txt
Echo If ping is over 100 average MS you will have lag sorry... >> Results.txt
Echo. >> Results.txt
CLS
Echo.
Echo Done.
Echo.
Pause