Permalink
Browse files

Batch addition for including parameters in batch file

  • Loading branch information...
1 parent 1fdfe5a commit 66b305eb86f82d636b4fb08ba690d5deb8518154 @shapiromatron committed Nov 20, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 Batch/Commands.bat
View
@@ -60,4 +60,14 @@ START %OutputFile%
PING 1.1.1.1 -n 1 -w 5000 >NUL
:: Append a blank line to text file
-echo. >> output.txt
+echo. >> output.txt
+
+::PASS ARGUMENTS TO A BATCH FILE
+::Note- up to 9 arguments can be passed, the 0 argument is the batch file name
+::
+:: example call: BatchFile.bat heido ho
+@echo off
+set var1=%1
+set var2=%2
+echo %var1%
+echo %Var2%

0 comments on commit 66b305e

Please sign in to comment.