What is %1 in a set DOS command?

What does the following DOS command do?

set PERLEXE=%1

Thanks.
LVL 1
naseeamAsked:
Who is Participating?
 
amit_gConnect With a Mentor Commented:
C:\YourBatchFile.bat CommandLineArg1 CommandLineArg2

%1 is CommandLineArg1
%2 is CommandLineArg2

and so on
0
 
administradoresConnect With a Mentor Commented:
Is the first argument passed to the batch file.
0
 
sbtecConnect With a Mentor Commented:
For Completion: %0 is the full path an filename from the batchfile itself. That means, when the name of the batch is test.bat and it is stored under c:\scripts, the %0 becomes the Value: C:\scrips\test.bat
Greetz from switzerland
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.