Sign in to follow this  
Followers 0
Mr.Furious

Registered file types

3 posts in this topic

Looking for a way to check if a file type is registered in the windows shell before continuing with the script?

Share this post


Link to post
Share on other sites



$ext = "exe"
$var = RegRead("HKCR\." & $ext, "")
If @error then
MsgBox(4096, "Extension:", "not supported")
Exit
EndIf
MsgBox(4096, "Extension:", "registred as " & $var)

If (Default) entry is possible empty you can use Holgers searchreg func

Share this post


Link to post
Share on other sites

Thanks so much that works great!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0