When I put in bat file in the button, like below, it works fine. (It merges all descrpt.ion files into one txt file):
Code: Select all
TOTALCMD#BAR#DATA
cmd.exe /c c:\Test\mybat.cmd
merged-comments.txt
C:\Windows\System32\imageres.dll
Merge descript.ion files
-1
But when I replace the bat content for the name of the bat file, as in the button below, it does not work anymore!
Code: Select all
TOTALCMD#BAR#DATA
cmd.exe /c @ECHO OFF && ECHO Creating %1... && FOR /F "usebackq tokens=1 delims=" %%i IN (`DIR "descript.ion" /A /O:NG /B /S /N`) DO (ECHO Adding %%i && ECHO. >> %1 && ECHO === %%i: >> %1 && TYPE "%%i" >> %1)
merged-comments.txt
C:\Windows\System32\imageres.dll
Merge descript.ion files
-1
Does the bat file code needs any modification obscure to me?