Dear friends.
How I do to make a new option in the windows explorer popup (context menu) that call my application?
I'm using VB6
Printable View
Dear friends.
How I do to make a new option in the windows explorer popup (context menu) that call my application?
I'm using VB6
You can look in Explorer->Folder Options->Filetypes->Advanced.
You can associate filetypes, and include default actions which show up as right-click events.
or, the easier way,
just click RUN WITH and find your program, then click Always use this program when ...
Dear friend.
I want to put it via code using Visual Basic 6!!!!???
I believe there is also a registry hack to do this. Try searching the forums. I remember seeing it lately.
:)
if you want it to apply to all files, you have to add a hive to
HKEY CLASSES ROOT/*
otherwise add it for the file types you want to include eg for RichTextFile
HKEY_CLASSES_ROOT\rtffile\shell\yourapp
HKEY_CLASSES_ROOT\rtffile\shell\yourapp\command
@=C:\Program Files\yourappfolder\yourapp.EXE %1
Quote:
actual example from registry
[HKEY_CLASSES_ROOT\rtffile\shell]
[HKEY_CLASSES_ROOT\rtffile\shell\open]
[HKEY_CLASSES_ROOT\rtffile\shell\open\command]
@="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" \"%1\""
[HKEY_CLASSES_ROOT\rtffile\shell\print]
[HKEY_CLASSES_ROOT\rtffile\shell\print\command]
@="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" /p \"%1\""
[HKEY_CLASSES_ROOT\rtffile\shell\printto]
[HKEY_CLASSES_ROOT\rtffile\shell\printto\command]
@="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" /pt \"%1\" \"%2\" \"%3\" \"%4\""
regds pete
editing the registry can be destructive :eek: