Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now
But it doesn't work if I do it inside an expanded IF block like this:
filever.exe /B /A /D "C:\Program Files\Folder\File.exe" | find "22.214.171.124" >nul If '%errorlevel%'=='0' Goto DoSomething
It no longer does the version match correctly. The %errorlevel% is always 0.
if exist "C:\Program Files\Folder\File.exe" ( filever.exe /B /A /D "C:\Program Files\Folder\File.exe" | find "126.96.36.199" >nul if '%errorlevel%'=='0' ( rem Something here ) else ( rem Something here ) ) else ( rem Something here )
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Task with PowerShell Script is failing with 0x41301||7||129|
|VBScript/Batch: Check the contains of file with a todays creation date||6||49|
|How can i echo a ! to end of a file?||8||36|
|Win XP Blue Screen Dump Files - Interpretation required..||14||144|
Join the community of 500,000 technology professionals and ask your questions.