Hey Guys
Is there anyway (lol course theres a way). To launch a file for instance test.zip from c and get it to be opened by the default file viewer on the system.
Cheers
Peter
Printable View
Hey Guys
Is there anyway (lol course theres a way). To launch a file for instance test.zip from c and get it to be opened by the default file viewer on the system.
Cheers
Peter
I found how to do it if anyones interested
ShellExecute
look it up in msdn
It is not reccomended but you could also use this:
Quote:
WinExec
The WinExec function runs the specified application.
This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function.
UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);