Solved

What is %1 in a set DOS command?

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now