Taskkill and running an .exe

Rookie here. I’ve been thrown to the wolves and need some help.
How do i make this action actually work? This doesn’t
wait_download\taskkill /F /IM Greenshot.exe && Greenshot-installer-1.3.301.exe /verysilent /morestart /allusers /suppressmsgboxes

I also created a .bat file with two lines and it didn’t work
wait_download\greenshot.bat

This has worked for me in the past :-

waithidden cmd.exe /c taskkill /IM “notepad.exe” /T /F

maybe its worth seperating task so it easier to diagnose as you go along.

taskkill is an exe in System32 so you can invoke it via BigFix like this:

waithidden taskkill /f /im greenshot.exe

By the way, the __Download part in BigFix is an alias to the downloads folder that BigFix uses. You don’t need it to invoke taskkill.

To install the program, try this

wait "__Download\Greenshot-installer-1.3.301.exe" /verysilent /norestart /allusers /suppressmsgboxes

We use __Download here because I’m assuming your action script downloads the exe.

@rockinreel, You’re just missing the ‘/T’ arguement. See the example from @BFConair.