"%%" is used in batch for variables like "for %%a in (*.*) do move %a
dir"

% is used for command line parameters such as "move %1 dir" where %1
comes from the command line.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dave MacMillan
Sent: Monday, September 23, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Creating Program Alias variable ?

Shouldn't it be %%1 if your command is called in a batch file?

Dave

In reply to 21 Sep message from [EMAIL PROTECTED]:


>The %1 in your batch file will be the path to a temp file
>containing the message sent to the program alias. You will need
>to have something in your batch file read from this temp file and
>extract the information you want - then pass that information to
>the rest of your program. 

>Hope this helps,
>_M
>  -----Original Message-----
>  From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Serhan
>Sevim 
>  Sent: Saturday, September 21, 2002 12:20 PM
>  To: [EMAIL PROTECTED]
>  Subject: [IMail Forum] Creating Program Alias variable ? 


>  Hey guys,
>  I'm trying to set a variable within the program alias but I
>don't seem to be successful at all.
>  Here is what I'm trying to do,
>  I created a program alias named mkdir. and there is a batch
>file called mkdir.bat and code in the batch file goes like this, 
>  *******
>  cd c:\
>  mkdir %1
>  *******
>  Now the "%1" part is the variable as you can see, I'd like to
>be able to call that %1 by sending an email .
>  (so if I want to create a folder named 20, I should enter 20
>.... into the subject or body to be sent to mkdir alias.
>  I remember that I saw something similar to this, but can't find
>and it. Any ideas?
>  Thank you.
>  Serhan.






To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to