Computer Hope

Microsoft => Microsoft DOS => Topic started by: the_mad_joker on May 08, 2010, 11:04:11 AM

Title: Stylish Name In Batch
Post 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)
           

Title: Re: Stylish Name In Batch
Post by: 1957classic on May 08, 2010, 11:57:52 AM
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
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 08, 2010, 09:31:51 PM
Hey Dude Youve Done It ThanXXXXXXXXXX! It Worked Perfectly  (|

Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 08, 2010, 09:50:13 PM
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]
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 09, 2010, 02:23:17 AM
Your zip folder was corrupted and wouldn't extract the files.
You will have to upload it again.
Title: Re: Stylish Name In Batch
Post by: BC_Programmer on May 09, 2010, 08:49:13 AM
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.
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 09, 2010, 12:28:25 PM
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]
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 10, 2010, 01:55:37 AM
An 100 Thanx Would Not Be Enough For U  (| (|

Hooray

(http://www.shakes.co.nz/images/thanks.gif)
Title: Re: Stylish Name In Batch
Post by: ShadyDave on May 10, 2010, 03:41:43 AM
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.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 02:46:45 AM
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
Title: Re: Stylish Name In Batch
Post by: BC_Programmer on May 11, 2010, 03:00:03 AM
you could try ping localhost or ping %computername% instead.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 03:22:29 AM
Quote
you could try ping localhost or ping %computername% instead.

Sorry BC  :-[ But I Couldnt Understand Your Technical Language  ???
Title: Re: Stylish Name In Batch
Post by: BC_Programmer on May 11, 2010, 03:32:02 AM
I didn't use technical language.
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 11, 2010, 10:19:37 AM
I just tried it with 127.0.0.1 and it works fine.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 10:30:06 AM
I just tried it with 127.0.0.1 and it works fine.

Could You Please Write Down The Batch Code Here  ;D
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 10:32:43 AM
See This After Replacing 1.1.1.1 To 127.0.0.1 Its Not Working

Code: [Select]
@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
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 11, 2010, 10:43:45 AM
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]
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 10:48:46 AM
faster sample with color change.bat Is Not Working (Process Completes Within 1 Sec)

Sample.bat Is WORKING Well
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 11, 2010, 10:55:41 AM
Yea, I set it to go faster.

If you want it slower, replace
ping -n 1  with ping -n 2.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 11:01:16 AM
Thanx 4 The Try But..
Dude Its Tooooooo Slow
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 11, 2010, 11:02:27 AM
Quote
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
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 11, 2010, 11:27:32 AM
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.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 12, 2010, 12:33:25 AM
Quote
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
Title: Re: Stylish Name In Batch
Post by: 1957classic on May 12, 2010, 09:49:35 AM
Quote
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.


Quote
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.
Title: Re: Stylish Name In Batch
Post by: the_mad_joker on May 13, 2010, 03:36:14 AM
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)