juthika Posted April 14, 2017 Share Posted April 14, 2017 Hi, I am automating some function of "3d builder" application in windows 10. How can I get it's version before doing any action. Thanks Juthika Link to comment Share on other sites More sharing options...
iamtheky Posted April 14, 2017 Share Posted April 14, 2017 This should probably be moved to GH&S, and I am not usually one for just handing out solutions... please ensure that follow up questions come with code you have attempted yourself and not just screenshots of the app you are trying to automate (as that will likely never be helpful). #include <AutoItConstants.au3> $pid = run('cmd /c powershell "Get-AppxPackage -name Microsoft.3DBuilder | select -expandproperty version"' , @SystemDir , @SW_HIDE , $STDOUT_CHILD) $sOut = "" While 1 $sOut &= StdoutRead($pid) If @error Then ExitLoop WEnd msgbox(0, '' , $sOut) juthika 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now