Solved

What is %1 in a set DOS command?

Posted on 2007-11-14
3
1,049 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 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

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

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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