?
Solved

What is %1 in a set DOS command?

Posted on 2007-11-14
3
Medium Priority
?
1,051 Views
Last Modified: 2012-05-05
What does the following DOS command do?

set PERLEXE=%1

Thanks.
0
Comment
Question by:naseeam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Assisted Solution

by:administradores
administradores earned 560 total points
ID: 20284334
Is the first argument passed to the batch file.
0
 
LVL 58

Accepted Solution

by:
amit_g earned 800 total points
ID: 20284338
C:\YourBatchFile.bat CommandLineArg1 CommandLineArg2

%1 is CommandLineArg1
%2 is CommandLineArg2

and so on
0
 
LVL 4

Assisted Solution

by:sbtec
sbtec earned 640 total points
ID: 20284383
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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question