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)
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
ShellCommandtextreturn(cmd /c if EXIST "%ProgramFiles(x86)%\SalesPad.GP\SalesPad.exe" FOR %A IN ("%ProgramFiles(x86)%\SalesPad.GP\SalesPad.Module.CCHSalesTaxOnlineWS.dll") DO @ECHO=%~tA)
any shell command to test open a cmd window and paste the portion after the /c
if EXIST "%ProgramFiles(x86)%\SalesPad.GP\SalesPad.exe" FOR %A IN ("%ProgramFiles(x86)%\SalesPad.GP\SalesPad.Module.CCHSalesTaxOnlineWS.dll") DO @ECHO=%~tA
and see if that works correctly
any shell command to test open a cmd window and paste the portion after the /c
if EXIST "%ProgramFiles(x86)%\SalesPad.GP\SalesPad.exe" FOR %A IN ("%ProgramFiles(x86)%\SalesPad.GP\SalesPad.Module.CCHSalesTaxOnlineWS.dll") DO @ECHO=%~tA
and see if that works correctly
Posted by:
chucksteel
8 years ago