Shell execute help please. 
Author Message
 Shell execute help please.

Hi there.
I am using the shellExecute function to open a file with its associated
program when the user double clicks on the file name in a listview. It
works great, but what about those file extensions that don't have a
program associated with it? When you double click on a file or an icon
in Windows and there is no program associated, a dialogue window opens
and asks which program you want to use to open the file. Can this
dialogue window be accessed from VB? If so, how?

Thanks for any help.

Jay MacDonald



Tue, 23 Jan 2001 03:00:00 GMT  
 Shell execute help please.

dim intRetVal
intRetVal = shell("\winnt\system32\notepad.exe \documents\samp.text",
1)

If you specify the path of the exe you shouldn't have any trouble
launching a file.

On Fri, 07 Aug 1998 19:27:53 -0300, Jay MacDonald

Quote:

>Hi there.
>I am using the shellExecute function to open a file with its associated
>program when the user double clicks on the file name in a listview. It
>works great, but what about those file extensions that don't have a
>program associated with it? When you double click on a file or an icon
>in Windows and there is no program associated, a dialogue window opens
>and asks which program you want to use to open the file. Can this
>dialogue window be accessed from VB? If so, how?

>Thanks for any help.

>Jay MacDonald




Thu, 25 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Shell - Wait for shelled app to load then execute next line of code

3. Shell & Shell Execute under NT

4. Help with SHELL to Execute Batch File

5. SHELL EXECUTE HELP!

6. HELP! - Shell Execute

7. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

8. please help with creating controls while the program is executing

9. vb5: Inet1.Execute and FTP (please help)

10. eval to execute - sub - Please Help.

11. Please help: Execute Typ MisMatch

12. Executing code - PLEASE HELP

 

 
Powered by phpBB® Forum Software