Computer Hope
Microsoft => Microsoft DOS => Topic started by: the_mad_joker on May 08, 2010, 11:04:11 AM
-
Hi Dude's (After A Long Time)
I Just Wanted To learn About A Batch Which Would Do The Following Things
1] Display My Name (EACH Alphabet After 1-1 Sec )
For Ex ::
T (1st Sec)
H (2nd Sec)
E (3rd Sec)
And So On
2] After Displaying My Name It Should Execute My Command
For Ex ::
T T
H H
E E
G HERE WILL BE A ASCII ART G
O O
D D
S S
L L
A A
Y Y
E E
R R
"MY COMMAND"
pause
PLS PLS PLS Help (I Wanna Make The Best Dos Presentation In My College)
-
I would do it this way:
@Echo off
Echo T T
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo H H
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo E E
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo.
Echo G G
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo O O
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo D D
Echo.
Echo S S
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo L L
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo A A
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo Y Y
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo E E
PING 1.1.1.1 -n 1 -w 1000 >NUL
Echo R R
Echo.
PAUSE
-
Hey Dude Youve Done It ThanXXXXXXXXXX! It Worked Perfectly (|
-
Well Here Is The AscII Art Attached
Pls
I Want This Art 2 Be In Middle And Display It With My Name With Time Of 1 Sec pause
[recovering disk space - old attachment deleted by admin]
-
Your zip folder was corrupted and wouldn't extract the files.
You will have to upload it again.
-
Your zip folder was corrupted and wouldn't extract the files.
You will have to upload it again.
opens fine for me with PowerArchiver 2010.
-
Thanks BC_Programmer, I used 7-zip and it opened.
I've attached a zip with 2 samples.
One has the 1 second delay, the other one is a little faster with a touch of color.
[recovering disk space - old attachment deleted by admin]
-
An 100 Thanx Would Not Be Enough For U (| (|
Hooray
(http://www.shakes.co.nz/images/thanks.gif)
-
Never use 1.1.1.1 as the IP address for creating a pause, this will force packets to bounce around your network and could be considered a security issue or possibe virus/hacked PC.
Use 127.0.0.1 as that won't go out on the network.
-
After Using 127.0.0.1 It Is Not Working Dave :'(
One Question
If I Use 1.1.1.1 As IP In That Batch A PC On Which INTERNET Is Not Available; Would It Be Able To Run It
-
you could try ping localhost or ping %computername% instead.
-
you could try ping localhost or ping %computername% instead.
Sorry BC :-[ But I Couldnt Understand Your Technical Language ???
-
I didn't use technical language.
-
I just tried it with 127.0.0.1 and it works fine.
-
I just tried it with 127.0.0.1 and it works fine.
Could You Please Write Down The Batch Code Here ;D
-
See This After Replacing 1.1.1.1 To 127.0.0.1 Its Not Working
@echo off
Title The God Slayer with art
color 0e
PING 127.0.0.1 -n 1 -w 400 >NUL
echo ,.,
PING 127.0.0.1 -n 1 -w 400 >NUL
echo T ___,---.__ / \ __,---,___ T
PING 127.0.0.1 -n 1 -w 400 >NUL
echo H ,-' \` `-.____,-' ² `-.____,-' // `-. H
PING 127.0.0.1 -n 1 -w 400 >NUL
echo E ,' I ~'\ /`~ I `. E
PING 127.0.0.1 -n 1 -w 400 >NUL
echo / ___// `. ,' , , \___ \
PING 127.0.0.1 -n 1 -w 400 >NUL
echo G I ,-' `-.__ _ I , __,-' `-. I G
PING 127.0.0.1 -n 1 -w 400 >NUL
echo O I / /\° ` . I , °/\ \ I O
PING 127.0.0.1 -n 1 -w 400 >NUL
echo D \ I \ \°°.°°° \ I / °°° °°/ / I / D
PING 127.0.0.1 -n 1 -w 400 >NUL
echo \ \ I `.°ÛÛÛ°\\ I //°ÛÛÛ° I / /
PING 127.0.0.1 -n 1 -w 400 >NUL
echo S `-.\ /' _ °°°°'' , . `°°°° _ `\ /,-' S
PING 127.0.0.1 -n 1 -w 400 >NUL
echo L `` / \ ,='/ \`=. / \ '' L
PING 127.0.0.1 -n 1 -w 400 >NUL
echo A I__ /I\_,--.,-.--,--._/I\ __I A
PING 127.0.0.1 -n 1 -w 400 >NUL
echo Y / `./ \\`\ \ I / /,//' \,' \ Y
PING 127.0.0.1 -n 1 -w 400 >NUL
echo E / / \I--+--I----/-I \ \ E
PING 127.0.0.1 -n 1 -w 400 >NUL
echo R I I /'\_\_\ I /_/_/`\ I I R
PING 127.0.0.1 -n 1 -w 400 >NUL
echo \ \__, \_ `~' _/ .__/ /
PING 127.0.0.1 -n 1 -w 400 >NUL
echo `-._,-' `-._______,-' `-._,-'
echo.
echo.
echo.
PING 127.0.0.1 -n 1 -w 200 >NUL
color C0
PING 127.0.0.1 -n 1 -w 200 >NUL
color 0C
PING 127.0.0.1 -n 1 -w 200 >NUL
color C0
PING 127.0.0.1 -n 1 -w 200 >NUL
color 0C
PING 127.0.0.1 -n 1 -w 200 >NUL
color C0
PING 127.0.0.1 -n 1 -w 200 >NUL
color 0C
PING 127.0.0.1 -n 1 -w 200 >NUL
color C0
PING 127.0.0.1 -n 1 -w 200 >NUL
color 0C
PAUSE
-
I used ping -n 2 127.0.0.1 >NUL on these.
Here are the same samples with the new ping
[recovering disk space - old attachment deleted by admin]
-
faster sample with color change.bat Is Not Working (Process Completes Within 1 Sec)
Sample.bat Is WORKING Well
-
Yea, I set it to go faster.
If you want it slower, replace
ping -n 1 with ping -n 2.
-
Thanx 4 The Try But..
Dude Its Tooooooo Slow
-
One Question
If I Use 1.1.1.1 As IP In That Batch A PC On Which INTERNET Is Not Available; Would It Be Able To Run It
Reply My This Post To Put An Solution To This Topic
-
I've used the ping in the original samples for the last 8 years. I've never had any problems with it. I'm connected to a network now running XP Pro - SP-3.
However, with all of the Anti-Virus programs and the newer versions of windows constantly trying to police the internet, it could cause a problem.
You could use the original and if it didn't work for everyone, then look for a solution.
-
it could cause a problem
1] In What Manner ?
Means What Type Of Problem ??? Virus Or Something Like That
And U Didnt Answer My Question
2] If The Batch Containing IP As 1.1.1.1 Is Executed On A PC Without Internet , Will The Batch Run ? Will It Cause Any Problem
IF : Yes It Will Run Without Any Problem - Than Thats The Solution
IF No : Then Please Give Any Other IP That Will Not Go Out Of Network
-
1] In What Manner ?
Means What Type Of Problem Virus Or Something Like That
And U Didnt Answer My Question
I didn't answer with a yes or no because it isn't that simple.
Everyone has different versions of windows with different versions of AV software.
Some settings may take it as a virus. (It is called a false postive). What I wrote for you is not a virus, the application you intend to run with it, I can't say.
2] If The Batch Containing IP As 1.1.1.1 Is Executed On A PC Without Internet , Will The Batch Run ? Will It Cause Any Problem
Of course it will, without problems.
-
Thanx For The Help All Of You Who Tried To Solve :-*
(http://www.commentsgraphic.com/thank_you/thank_you_comment_04.gif)
(Special Thanx To Salmon , Hope You're Reading It :rofl: )
(http://i410.photobucket.com/albums/pp183/9thWondersMods/TopicClosed-1-1.jpg)