Set command help
Posted: 20 Jul 2009 17:36
I am working on a batch script and am having trouble with the set command. I have looked in the help section of the command but am still missing something (probably simple). Here is what I have so far:
@echo off
echo Program Name: = %0
set %1 =%test%
echo Argument 1 =%1
echo Argument 2 =%2
echo Argument 3 =%3
I read this and think that Argument 1 will populate with test but I get a syntax error which is an improvement from the nothing I was getting earlier. If I can get some direction to correcting this it would be greatly appreciated. Thanks all in advance.
@echo off
echo Program Name: = %0
set %1 =%test%
echo Argument 1 =%1
echo Argument 2 =%2
echo Argument 3 =%3
I read this and think that Argument 1 will populate with test but I get a syntax error which is an improvement from the nothing I was getting earlier. If I can get some direction to correcting this it would be greatly appreciated. Thanks all in advance.