School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,143 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,756 people online right now. Registration is fast and FREE... Join Now!




quick batch question

 

quick batch question

horse

21 Oct, 2009 - 05:11 PM
Post #1

New D.I.C Head
*

Joined: 21 Oct, 2009
Posts: 9

so every time i make a .bat file, i need the number of echoes squared pauses, if you dont get it, example

say I make the following file

@echo off
color 4
cls
echo diasm
echo iads
echo idam
echo fasdo



I'd need to make 16 pauses to stop it from just closing instantly. but once i get past about 5 echoes it's impossible to stop it from closing with pause commands. What do I do to fix this?

User is offlineProfile CardPM
+Quote Post


no2pencil

RE: Quick Batch Question

21 Oct, 2009 - 05:15 PM
Post #2

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
You could run it from the command prompt, or force a loop.

CODE

:start
sleep 300
goto  :start

User is online!Profile CardPM
+Quote Post

horse

RE: Quick Batch Question

21 Oct, 2009 - 05:42 PM
Post #3

New D.I.C Head
*

Joined: 21 Oct, 2009
Posts: 9

QUOTE(no2pencil @ 21 Oct, 2009 - 05:15 PM) *

You could run it from the command prompt, or force a loop.

CODE

:start
sleep 300
goto  :start


thanks
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 03:34PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month