hankjrfan Posted November 5, 2005 Share Posted November 5, 2005 (edited) This function should open a file in its default program. Warning the file must be associated with a program for this to have the desired result. This is an idea I got after reading this topic by Felix N. RunFileHope someone finds it usefull.Func _RunFile($file) If Not FileExists($file) Then Return 0 Return Run(@ComSpec & " /c " & "start " & FileGetShortName($file),"",@SW_HIDE) EndFuncLOL just realized that I put "an non executable" instead on "a non executable" on the title. Edited November 5, 2005 by hankjrfan Link to comment Share on other sites More sharing options...
erifash Posted November 5, 2005 Share Posted November 5, 2005 Very nice script! I can see you used the file's short name to get rid of confusing quotes. Great job! My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver 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