Sign in to follow this  
Followers 0
billthecreator

Open As Dialog?

5 posts in this topic




Do you mean the undocumented verb "runas" which, according to some comments, requests UAC elevation :

http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx

Would be interesting if someone with UAC enabled would try it and report back :D

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

_OpenWith(FileOpenDialog("","","All Files (*.*)"))

Func _OpenWith($file)
    If FileExists($file) Then Return DllCall("shell32.dll","hwnd","OpenAs_RunDLL","hwnd",0,"str","","str",$file, "int", 0)
EndFunc

Edited by spudw2k

Share this post


Link to post
Share on other sites

_OpenWith(FileOpenDialog("","","All Files (*.*)"))

Func _OpenWith($file)
    If FileExists($file) Then Return DllCall("shell32.dll","hwnd","OpenAs_RunDLL","hwnd",0,"str","","str",$file, "int", 0)
EndFunc

I believe this is what im looking for. Im at work right now, will have to try it later.

Thank you so much.


[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

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