Customer Inventory Rule Help
What I'm trying to do is
If only software.exe exists only then run the command line to pull the last modified date of the dll file.
This script below works but it posts the results from every computer.
ShellCommandtextreturn(cmd.exe /c FOR %A IN ("%ProgramFiles(x86)%\Solo\WS.dll") DO @ECHO=%~tA)
I want it to only run if the software exists on the computer.
I'm looking for something like this below but it didn't work for me.
ShellCommandtextreturn(if EXIST "%ProgramFiles(x86)%\SalesPad.GP\SalesPad.exe"
cmd.exe /c FOR %A IN ("%ProgramFiles(x86)%\SalesPad.GP\SalesPad.Module.CCHSalesTaxOnlineWS.dll") DO @ECHO=%~tA)