my windows batch file:
@echo off start c:\users\test\desktop\test_windows_x32_1_67_87_test %1"-fenv=http://test.com/test" i starting exe file installation environment settings using above batch script. working expected.
but in above batch file, giving full name "test_windows_x32_1_67_87_test". wanted start installation if file starts "test_windows".
please guide me how can use regular expression in case.
use for enumerate files matching test_windows*:
for %%a in (c:\users\test\desktop\test_windows*) ( start "" "%%a" %1"-fenv=http://test.com/test" goto done ) :done p.s. code exits loop after first match in case there many such files, if it's impossible can remove goto done , :done lines.
Comments
Post a Comment