What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » DOS Batch File Help [Solved]

DOS Batch File Help [Solved]
Author: Message:
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
O.P. Undecided  DOS Batch File Help [Solved]
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.

This post was edited on 10-28-2006 at 04:09 AM by albert.
10-28-2006 02:33 AM
Profile E-Mail PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: DOS Batch File Help
umm... "if '%2'=='' goto error"?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
10-28-2006 02:41 AM
Profile PM Web Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
O.P. RE: DOS Batch File Help
quote:
Originally posted by ShawnZ
umm... "if '%2'=='' goto error"?

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

* albert hides
10-28-2006 02:50 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On