|
-
Sep 29th, 2001, 12:02 PM
#1
Thread Starter
Lively Member
Launching a file
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
"Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
-- Judas Priest
My email is [email protected]
-
Sep 29th, 2001, 01:17 PM
#2
Thread Starter
Lively Member
I found how to do it if anyones interested
ShellExecute
look it up in msdn
"Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
-- Judas Priest
My email is [email protected]
-
Sep 29th, 2001, 01:24 PM
#3
Frenzied Member
It is not reccomended but you could also use this:
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
);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|