version 1.5.0 Removing unneeded variable (in menu) and adding error message for user
[Batch] Removing unneeded variable assigment in the user menu last for cycle
and adding a new information for the user if something goes wrong
(__stx_image_path="Unknown path")
--- a/smalltalk.bat Fri Jul 21 11:39:30 2017 +0200
+++ b/smalltalk.bat Fri Jul 21 13:50:05 2017 +0200
@@ -53,7 +53,7 @@
:: Versions =
:: ==========
:: This script
-SET batch_script_version=1.4.9
+SET batch_script_version=1.5.0
:: Smalltalk/X
SET stx_version=6.2.6
@@ -1251,11 +1251,11 @@
:: Getting path and file name from user answer
SET stx_break=
(FOR /F "delims=" %%A IN ('dir !input_image_path!^*^.!input_image_suffix! /B /O^:-DN 2^>NUL') DO IF NOT DEFINED stx_break (
- SET "__stx_image_path.%counter_get_file%=%%~dpnxA"
IF "!verified_user_input!" EQU "!counter_get_file!" (
SET "__stx_image_path="%%~dpnxA""
SET stx_break=yes
) ELSE IF "!counter_get_answer!" LSS "!counter_get_file!" (
+ SET "__stx_image_path="Unknown path""
SET stx_break=yes
)
SET /A counter_get_file+=1