1.

Solve : Concatenate two variables?

Answer»

Hi,
    I have a variable predefined, let's call it Apples.  I want to move all files with this as the prefix followed by _TEST followed by anything and then .zip to a differnt DIRECTORY i.e.

IF EXIST %Apples%_TEST*.zip MOVE %Apples%_TEST*.zip .\Zipped

It's not WORKING, how do I do this?

Thanks.

Raymondyou may find the answer here>http://home7.inet.tele.dk/batfiles/Thanks, since you sound confident of where to find it, wanna give me a TIP as to what to search for on the webpage?  I.e. "variable"?

Thanks.Looks like you need to put the filespecs in quotes.

IF EXIST "%Apples%_TEST*.zip" MOVE "%Apples%_TEST*.zip" .\Zipped

This will force recognition of long file NAMES.



Discussion

No Comment Found