Running a file

Started by
3 comments, last by gandolf1212 22 years, 6 months ago
Well, i''m tring to make a program that arranges files so you can read them in an outline style format: // example // -Things I Like +Computers +TV -Games -Final Fantasy -Oregon Trail -Starcraft But it also has to let you open the files and veiw them (either in windows or DOS) If anyone knows the command to run a DOS or Windows based program and / or how to send and get data from them please post here. Thanks in advance, Gandolf
I think there's to much blood in my caffeine system.
Advertisement
To launch a file with its associated application under Windows, use ShellExecute().
Well, i hate to sound to newbie''ish here but could you tell me the paramaters ShellExecute() takes. I can''t find it in borland help and all code insite tells me is it takes a void *, an int and a bunch of const char *''s. (I really gotta buy a book ^_^)

Thanks,
Gandolf
I think there's to much blood in my caffeine system.
When in Win32 doubt, go to MSDN. The prototype for ShellExecute() is:
HINSTANCE ShellExecute(    HWND hwnd,     LPCTSTR lpOperation,    LPCTSTR lpFile,     LPCTSTR lpParameters,     LPCTSTR lpDirectory,    INT nShowCmd); 

Thanks guys, i got it to open files now =)
I think there's to much blood in my caffeine system.

This topic is closed to new replies.

Advertisement