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
Solved

What is %1 in a set DOS command?

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

set PERLEXE=%1

Thanks.
0
Comment
Question by:naseeam
3 Comments
 
LVL 5

Assisted Solution

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

Accepted Solution

by:
amit_g earned 200 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 160 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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