%1 and %~1 for evaluating input

August 27, 2011 at 19:01:59
Specs: Windows 7
why would one use %1 for evaluating input or instead use %~1 for evaluating input?
I see examples of using %~f1 to substitute like as in...

echo %~f1
which outputs the current path appended with the first offered arguement.

what is the purpose of the ~ ?

Is there a list of substitution options like the f in %~f1 ?

Any explanation will be helpful or just offer a source for reading.

See More: %1 and %~1 for evaluating input

Report •

August 27, 2011 at 20:00:10
At the command prompt enter FOR /?

Please come back & tell us if your problem is resolved.

Report •
Related Solutions

Ask Question