Do Together Code

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
scienceguru1.bat
Posts: 44
Joined: 01 Jan 2011 20:54

Do Together Code

#1 Post by scienceguru1.bat » 21 Mar 2011 18:46

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

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Do Together Code

#2 Post by phillid » 22 Mar 2011 00:33

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

Post Reply