HowaWe Posted April 13, 2023 Share Posted April 13, 2023 Hello comm. I have a au3 script command like this and it doesn't work on Win 11 (working on Win11 with manuel enter CMD and working on win 10 Au3 script ) $sFilePath = "C:\Video.mkv" RunWait(@ComSpec & ' /c OpenWith "' & $sFilePath &'"', "", @SW_HIDE) Do your have any ideas... Thx. Link to comment Share on other sites More sharing options...
Subz Posted April 13, 2023 Share Posted April 13, 2023 It works if you re-enable the legacy context menus (it does for me anyway). reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve Zedna 1 Link to comment Share on other sites More sharing options...
Solution argumentum Posted April 13, 2023 Solution Share Posted April 13, 2023 #include <WinAPIDlg.au3> _WinAPI_ShellOpenWithDlg ( $sFilePath [, $iFlags = 0 [, $hParent = 0]] ) Zedna and bdr529 1 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
HowaWe Posted April 14, 2023 Author Share Posted April 14, 2023 @Subz - @argumentum Thanks for your suggestions :) argumentum 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