Page 1 of 1

wildcards as command arguments ?

Posted: 14 Apr 2008, 21:28
by hrx
Hello,

i´m using an external crc checker. now i´m to let it check the sfv file within a directory without entering the dir. i´m using the folowing arguments:

$(FullPath)$(Name)\00-$(Name).sfv

everything works fine so far. but sometimes the beginning of the sfv file is not 00- but 00_. that´s where wildcards come into play. is it possibile to set wildcards as ? or * in the arguments and pass them to the command line?

i tried but had no luck. so perhaps you have some advice.

thank you

Posted: 15 Apr 2008, 08:45
by Petr Solin
You can enter * or ? to arguments, it will not be changed (external crc checker will receive them). If it is not designed to work with masks, you still can use simple batch file (e.g. runcrcchecker.bat), something like (may need some corrections, I did not tested it):

Code: Select all

if EXIST "00_%1" goto label1

here use 00-%1

goto end
:label1

here use 00_%1

:end