1.

Solve : DOS Command %?

Answer»

How is this command used?The percent sign (%) is not a "command".
Is it used in DOS as a modifier?I think they go around variables, LIKE this:

Code: [Select]@echo off
set %lol% = 1337
echo %lol%
I do not care if I did the set wrong.Quote from: Fleexy on September 11, 2010, 06:31:39 PM

I do not care if I did the set wrong.

Then you are a fool.

Percent signs are used to indicate EXPANDABLE tokens to the command interpreter such as..

Variables

set var=rasputin
echo %var%

Metavariables used by FOR

FOR %%A in (A B C D) DO echo %%A

Passed parameters

@echo off
echo parameter 1 is %1
echo parameter 2 is %2
echo all parameters %*

The name of a batch script

echo this batch file is %0


Discussion

No Comment Found