• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1058
  • Last Modified:

What is %1 in a set DOS command?

What does the following DOS command do?

set PERLEXE=%1

Thanks.
0
naseeam
Asked:
naseeam
3 Solutions
 
administradoresCommented:
Is the first argument passed to the batch file.
0
 
amit_gCommented:
C:\YourBatchFile.bat CommandLineArg1 CommandLineArg2

%1 is CommandLineArg1
%2 is CommandLineArg2

and so on
0
 
sbtecCommented:
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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now