WinExec
-
i want to know is there any function or system call which is generalized and can run any file given as a parameter.i have tried WinExec("c:/one.exe",SW_SHOW) . This system call works perfect for executable files but when i try to give a zip file as its first parameter it doesn't execute it.Is there any system call which is generalized one and can run any file . Be FaithFull To Your Work.
-
i want to know is there any function or system call which is generalized and can run any file given as a parameter.i have tried WinExec("c:/one.exe",SW_SHOW) . This system call works perfect for executable files but when i try to give a zip file as its first parameter it doesn't execute it.Is there any system call which is generalized one and can run any file . Be FaithFull To Your Work.
-
currently i am sitting on a computer which doesn't have vs 6.so you just tell me does ShellExecute() run any type of file and is it a generalized one and what is the description of its parameters.Thanks Be FaithFull To Your Work.
-
currently i am sitting on a computer which doesn't have vs 6.so you just tell me does ShellExecute() run any type of file and is it a generalized one and what is the description of its parameters.Thanks Be FaithFull To Your Work.
It is the same as the 'Open' item on the menu if you right click on a file, it uses the default action on that file type. I have used this on Word documents and Excel spreadsheets. Elaine :rose: The tigress is here :-D
-
currently i am sitting on a computer which doesn't have vs 6.so you just tell me does ShellExecute() run any type of file and is it a generalized one and what is the description of its parameters.Thanks Be FaithFull To Your Work.
You may not have VS, but you have the Internet[^]. ShellExecute performs verbs on an object. This can be "open" (verb) abc.zip (object), or "print" zorro.doc - anything that is registered within the local system. Your application need not even know what the application is; and it will automatically use the user's default application. For instance, "edit" readme.txt will laucnh that file in the user's preferred editor for txt file.
-
It is the same as the 'Open' item on the menu if you right click on a file, it uses the default action on that file type. I have used this on Word documents and Excel spreadsheets. Elaine :rose: The tigress is here :-D
Thanks buddy.BUT WHAT ABOUT THE PARAMETER LIST.DOES IT TAKE JUST PATH OF FILE OR SOMETHING ELSE AS WELL. Be FaithFull To Your Work.
-
You may not have VS, but you have the Internet[^]. ShellExecute performs verbs on an object. This can be "open" (verb) abc.zip (object), or "print" zorro.doc - anything that is registered within the local system. Your application need not even know what the application is; and it will automatically use the user's default application. For instance, "edit" readme.txt will laucnh that file in the user's preferred editor for txt file.
AS SOON AS I HAVE POSTED MY LAST POST ,I REALISED MY MISTAKE AND WENT STRAIGHT TO THE LINK YOU HAVE GIVEN.SORRY AND THANKS . Be FaithFull To Your Work.
-
Thanks buddy.BUT WHAT ABOUT THE PARAMETER LIST.DOES IT TAKE JUST PATH OF FILE OR SOMETHING ELSE AS WELL. Be FaithFull To Your Work.
It's in the documentation,go to Help ->Index. The tigress is here :-D
-
currently i am sitting on a computer which doesn't have vs 6.so you just tell me does ShellExecute() run any type of file and is it a generalized one and what is the description of its parameters.Thanks Be FaithFull To Your Work.
Usman Tasleem Akshaf wrote: currently i am sitting on a computer which doesn't have vs 6. i don't see where is the problem... MSDN have an inline web site... the url for Visual C++ is
www.msdn.microsoft.com/visualc
there, search forShellExecute()
[^]... not so hard to do by yourself isn't it ? :->
TOXCCT >>> GEII power
[toxcct][VisualCalc]