Display Pop Up Message Using Cmd

cmd

cmd
cmd

So here is a simple command code which will accept the name of the user and show it in the pop up message

@ECHO OFF
title by AthulExe @ TricksOverdrive
:s
echo hey what's you're name ?
set /P name=
:disp
cls
title by AthulExe @ TricksOverdrive
msg * "hi %name% hope you enjoyed this cmd code :)"
msg * "more cool tricks at www.tricksoverdrive.co.cc"
:exit


to display a pop up message using cmd what u have to do is

use the code

msg * "the message which should be shown in the pop up box"

set /P function is used to accept a value from the user

and %name% display the value stored in %name%

how to use this cool trick ?

u can put you customized cmd code in a note pad and save it as TITLE.bat

and copy it and paste it in you'r friends startup

so it will display this code each time he switch ons his pc

or u can put it in your pen-drive and use autorun file to open it

so when ever someone opens your pen-drive it will display your personal message


Comments 2 comments

mann 4 years ago

if you put @echo off ..you don't need to use cls


AthulExe-ae profile image

AthulExe-ae 4 years ago from India Author

i used that cls since i've written an echo statement in between, any way the pop up will work fine without that cls. Thanks for you're comments :)

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working