Shoutbox

DOS Batch File Help [Solved] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: DOS Batch File Help [Solved] (/showthread.php?tid=67767)

DOS Batch File Help [Solved] by albert on 10-28-2006 at 02:33 AM

hey, I created a batch file that does nothing really cool expect displaying a text with your name into it, here's it's code :

code:
echo off
echo Monsieur %2 %1 a telephone a 
echo madame %1, car monsieur
echo %2 sera en retard pour
echo la reunion de la famille %1.


Basically you just enter the name of the batch file and with the two parameters that follow.

Now I know there is a way to actually give an error message (echo error) if the person doesn't enter any parameters, or enters only 1.

I just don't know what command that is, and I was wondering if any of you geniuses would.

Thanks in advance.
RE: DOS Batch File Help by ShawnZ on 10-28-2006 at 02:41 AM

umm... "if '%2'=='' goto error"?


RE: DOS Batch File Help by albert on 10-28-2006 at 02:50 AM

quote:
Originally posted by ShawnZ
umm... "if '%2'=='' goto error"?

Okay. I had no clue we could use if. :$

* albert hides