R
RedLars
Hi,
The following command checks, using an internal utility dllchecker, if
the a file has a dependency to ole32.dll. The result is either 0 or 1
which is outputed to the console.
DllChecker.exe /m someRandomFile.dll | find /c "ole32.dll"
In a bat script I'd like to iterate through a list of files performing
the above action. However, how can I use the result of said action in
an if - else expression? Say if file abc.dll has 1 instance of
ole32.dll I'd like to ouput "yes" otherwise "no".
So far I got;
for /r %%f in (*.dll) do (DllChecker.exe /m %%f | find /c "ole32.dll")
Appreciate any help.
The following command checks, using an internal utility dllchecker, if
the a file has a dependency to ole32.dll. The result is either 0 or 1
which is outputed to the console.
DllChecker.exe /m someRandomFile.dll | find /c "ole32.dll"
In a bat script I'd like to iterate through a list of files performing
the above action. However, how can I use the result of said action in
an if - else expression? Say if file abc.dll has 1 instance of
ole32.dll I'd like to ouput "yes" otherwise "no".
So far I got;
for /r %%f in (*.dll) do (DllChecker.exe /m %%f | find /c "ole32.dll")
Appreciate any help.