Community Question

Quick question. As the title suggests, after opening a program or file in Windows 8 using the EXEC() command (e.g, opening a picture), how can you close that program or file using the execute command?

Thanks.
CochranRobotics
Commented May 2015
This works for me from EZ-Builder script.

Code:


exec("C:\current build progress.jpg")
sleep(2000)
$attributes = "/F /IM dllhost.exe"
Exec( "taskkill", $attributes )

Steve G
Commented May 2015
Thanks buddy. I'll keep trying things out my end.
CochranRobotics
Commented May 2015
it may be the >nul that was causing the issue. Try to remove that.
Steve G
Commented May 2015
Yep, you nailed it my friend. Your last script worked for me too.

That's 2 for 2 David. Once again, thanks very much for your help. Most grateful. :)
CochranRobotics
Commented May 2015
Glad we found a solution and happy to help. Thanks Steve.
Question
AvatarSteve G
Asked on Monday, May 25, 2015