Page 1 of 1

Do Together Code

Posted: 21 Mar 2011 18:46
by scienceguru1.bat
I am working on a code as a practical joke on my annoying sister. Is there a "do together" command?
heres what i have so far:

Code: Select all

@echo off
echo This will log off the computer:
echo Are you sure you would like to do this???
echo paused
ping -n 1.5 localhost>nul
cls
echo This will log off the computer:
echo Are you sure you would like to do this???
echo paused.
ping -n 1.5 localhost>nul
cls
echo This will log off the computer:
echo Are you sure you would like to do this???
echo paused..
ping -n 1.5 localhost>nul
cls
echo This will log off the computer:
echo Are you sure you would like to do this???
echo paused...
ping -n 1.5 localhost>nul
pause>nul
"C:\Windows\winsxs\amd64_microsoft-windows-t..es-
commandlinetools_31bf3856ad364e35_6.1.7600.16385
_none_40a54b0d12b542e8\logoff.exe"
del "%~f0"
pause

Re: Do Together Code

Posted: 22 Mar 2011 00:33
by phillid
Do you mean so that you can do two things from one batch script at once?
If so, try using the START sommand, however this will open a new window.

phillid