Advertisement

04.24.2008 at 12:58PM PDT, ID: 23351723 | Points: 125
[x]
Attachment Details

Difference between set _args=%~2  VS set _args=%2

Asked by lqwest in Shell Scripting, MS DOS

Tags:

In command shell I have this code:

set _args=%~2 %~3

How is this different from this line ( notice no tilde's)
set _args=%2 %3

This is someone else's code, and I am not sure why the ~ is in the code line. Is there any difference behind the scenes, and what is the logic behind the use of the tilde (~)?Start Free Trial
 
 
[+][-]04.24.2008 at 01:26PM PDT, ID: 21434812

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.27.2008 at 03:07PM PDT, ID: 21450560

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628