|
Answer» how can i call/use the command line arguments inside a batch file ? eg: myfile.kit wrap commandlineargumentI'm not exactly sure what your example means. But I'll make an attempt to answer.
Use a variable.
Here is a example batch file. Silly as it MAY be, it illustrates how command line VARIABLES are used. Save it as a batch file and PLAY with it, and you'll quickly get the idea of how to use them with your commands.
Code: [Select]@ECHO off @cls echo.
echo Here is the first command line arg %1
echo.
echo And here is the second command line arg %2
echo.
Let's assume you saved that as test.bat .
If you run it like this: test first second
You'll get:
Here is the first command line arg first
And here is the second command line arg second
Run it again - type WHATEVER you like as the first and second command line parameters, and they will passed into the batch file.
I hope this helps.
|