Yzöwl Posted October 23, 2007 Posted October 23, 2007 As it was in your previous examples.e.g.if errorlevel 3 goto fin
jaclaz Posted October 24, 2007 Posted October 24, 2007 also, you seem to manage the %~n1 variable, in the process, what happens to the EXTENSION of the file? %~x1 or %~nx1 management appears to be missing. To expand on Yzöwl's note on the use of ERRORLEVEL, the syntax you are using is "DOSsish" under 2K/XP/2003, you can also use the %ERRORLEVEL% variable, as such, this:if errorlevel 3 goto fincan be written also as:if %errorlevel%.==3. goto finbut you can also use the other operators, like equ, lss, gtr, etc.:http://www.robvanderwoude.com/errorlevel.htmlwhich could make you get rid of one of the IF checksjaclaz
ronmanp Posted October 25, 2007 Author Posted October 25, 2007 thanks for the %~nx1 ! My script is working 100% thanks a lot
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now