I tested this and I see that at the command prompt everything works perfectly but I created a shortcut and it is not applying my parameter on the command line
C:\dir1\batchfile.btm 3
The 3 does not get passed to my btm properly from the shortcut.
The info below was more than I needed to post I see now
I have a script that I run using Date functions that many here helped me with.
Basically batchfile.btm 2 should run the command 2 days back.
When I manually run the command it works perfectly so I have determined the error is here
REM allow for more days back for copy
iff "%1"=="" THEN &
SET DaysBack=1
else
SET DaysBack="%1"
endiff
The default sets my days back to 1 in this line
SET PhotoDate=%@MAKEDATE[%@EVAL[%@DATE[%_DATE] - %DaysBack]]
The issue is that when I create a shortcut to the batch file to set it back 2 days (I run batchfile.btm 2) It does not use the 2 at all.
Can you see from this what I have done wrong possibly?
C:\dir1\batchfile.btm 3
The 3 does not get passed to my btm properly from the shortcut.
The info below was more than I needed to post I see now
I have a script that I run using Date functions that many here helped me with.
Basically batchfile.btm 2 should run the command 2 days back.
When I manually run the command it works perfectly so I have determined the error is here
REM allow for more days back for copy
iff "%1"=="" THEN &
SET DaysBack=1
else
SET DaysBack="%1"
endiff
The default sets my days back to 1 in this line
SET PhotoDate=%@MAKEDATE[%@EVAL[%@DATE[%_DATE] - %DaysBack]]
The issue is that when I create a shortcut to the batch file to set it back 2 days (I run batchfile.btm 2) It does not use the 2 at all.
Can you see from this what I have done wrong possibly?