Right Click Shell Extension?
Jul 13, 2009Been searching for an hour now on google and this site and i cant find any documentation to read up on.
I am wanting to add my own context menu entry when a user right clicks an image in explorer
Been searching for an hour now on google and this site and i cant find any documentation to read up on.
I am wanting to add my own context menu entry when a user right clicks an image in explorer
Apparently, it's not safe to use the .Net framework < 4 to write a shell extension.
As my users are likely to not have that version of the framework, I'd rather use a third-party solution so I can write the main app in .Net 2 or 3.
Can someone recommend an add-on for this, either open-source or affordable?
For example the WinRAR icon, right-click a file, system popup the context menu, show the WinRAR with it's icon, i want to know how to get the WinRAR icon or other icons (for example CuteFTP...) using .NET. I researched this problem
[Code]...
I have an application, that I have integrated into Windows Shell, for this example I will use Notepad. You can right-click a file on the desktop and select 'Edit with Notepad', this launches(if I am not mistaken 'NotePad %1') notepad, and opens the file right away for editing.For my application I need this to get the file name, so basically I would right click on my application, and it will run and have the filename for me to use inside the application.
View 1 RepliesI'd like to add a group in Windows Explorer's context menu that works like 7Zip's:
I know there's the shortcut of using eg. FastExplorer, but I'd like to avoid depending on a third-party tool (besides, FE happens to be deadware).
Google seems to say that this is done through a COM DLL that implements the IContextMenu interface, but the examples I found were all done in C# or VC++.
Before I investigate further, can VB.Net gurus tell me if this can be done in VB.Net, or only C#/VC++ will do?
I know this has been asked many times before, but since google is flooded with advertising upon this subject i thought i might try here. the problem is pretty much, how the ____ do i add an item to windows explorer context menus. I specifically want to target .xls file "Excel" Files. I understand that i can make an item by creating a key and sub Key in * registry. but besides that i am lost.
[Code]...
I want to run my application on Windows Desktop when click my Shell Item in right Menu, for example any antivirus application add a menu for Scan item on the right menu of Windows and you can click right button on a file and scan the file via Antivirus Application how can i do this ?
i think i have to add a value on the Registry(HKEY_CLASSES_ROOTDirectoryShell)
I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.
View 1 RepliesI'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!
Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.
Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click
[CODE].....................
Why would I use an extension method instead of just creating non-extension sub or function?
For ex, I could have an extension function called IsNullOrEmptyOrAllSpaces on String, which does a check as its name implies. Or I can write a stand alone function that does the same thing. Other than having the extension show up in Intellisense, is there any advantage? Is a call to the extension quicker/more efficient than a call to a regular function?
I want to create my own extension without changing my registry file. I have a VB.NET project and I firstly want to create my own extension like ".abc" afterwards if there is any file like xxxxxx.abc when a person try to open this file I want windows to startup my project and open that file.
View 1 RepliesI saw this post and I want to know if this is possible in VB. So like extension method, do extension properties exists in VB.Net? Here I've read they do, but cannot find any examples.
View 3 RepliesIf i have an extension ... say...
vb
<System.Runtime.CompilerServices.Extension()> _
Public Sub Invert(ByVal b As Bitmap)
is there any way of hiding this from inteli-sense if it is not used as an extension?so that pressing ctl+space only triggers it if you go "bitmap.Inve.." rather than prompting on "Inve..."?
I am using VB 08 running an openfiledialogue wanting to get the result of the GDS file (*.gds) to be the default extension at the drop down menu instead of All file when the openfiledialogue box opens.
I coded it with:
OpenFileDialogue.Filter = "GDS File(*.gds)|*.gds|All files|*.*"
but the results i get in the open file dialogue box remains as all files being in the drop down menu as the default file extension. How to i set it to ".gds" format?
I am having trouble with a separate program that keeps saying Adobe flash is not installed. And I have tried everything but it still wont go away (that was off topic a bit). I want to create a program that will auto click the words "Click Here" if the error message shows. Because if I click there then it will work normally until it pops up again.
View 3 Repliesi have this
Quote:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("mybatchfile.bat")
End Sub
its working if they are on the same folder,i want to do is make the batch file as a resource file so that i can run it even not in the batchs folder?
I can create a shortcut using this code:
Dim sFolder As String, sTarget As String, sAppName As String
Dim oShell As New WshShell
Dim oShortcut As WshShortcut
[Code]....
I am using Shell Dll to unzip zip file in vb.net 2005. Following is the code for this.
Dim sc As Shell32.Shell = New Shell32.Shell
Dim srcf As Shell32.Folder = sc.NameSpace(src)
Dim desf As Shell32.Folder = sc.NameSpace(des)
[code].....
I want to send messages withing a windows 7 LAN using VB.NET code. The problem is that the msg.exe executes commands in admin mode only. Here is the code. Shell("cmd.exe /k runas /user:farook-pcadministrator msg.exe") 'Here i'm prompted for a password. Shell("cmd.exe /k msg.exe", 1) I use the /k switch to see what's going on in the shell. /c is the silent switch. I do not wish to use runas neither do I wish to change privilages in msg.exe
View 2 RepliesI have an update app, which can be updated itself by another update app (so, the second app is an updater of the main updater). Both apps must have administrator permissions because of writing in the Program Files folder. Is it possible that when the main updater is running (under administrator rights) it can use Shell() to let the second updater run with administrator rights without a UAC confirm dialog popping up again?
View 3 Repliesit possible to have a start command instead of the simple shell the same code as in a .BAT File, i dont know but on a .bat is a higher/lower lvl.
[Code]...
I want to be able to run any command by typing into a textbox.For example if I wanted to get info from "ipconfig".I want to be able to type "ipconfig" into the textbox and for it to then display the infomation into a richtextbox.I have been searching the internet but so far can not find a solution
Code:
Shell("ipconfig", AppWinStyle.Hide)
How do I now display the infomation from the console into a richtextbox?
I want to use Shell function in Vb.Net.Thing is that i have 5 checkboxes. on checking each checkbox i want to execute batch file which fires some commands in database.but while checking all 5 checkboxes all batch file gets executed and then it gives me error.I want to run only one batch file at a time.
View 11 RepliesI wrote a backup utility that synchronizes a list of folders. Errors appear in a list. In the list I can right-click to retry, exclude the folder next time, or open the folder in explorer to examine.When I shell to explorer I get an AccessViolationException. Form1 opens Form4 with Form4. ShowDialog(), and that's where the error occurs. The error does not occur within Form4 where the shell function is called. memory must be getting trashed somehow.I've used two methods, Shell and System.Diagnostics.Process.Start. Each produces similar results. Shell waits awhile before causing the error, but Process.Start causes the error immediately.This is VB.Net 2010 using framework 4, though I did resolve a shell problem once before with VBA by writing out a VBScript file then shelling to the VBScript file.
View 3 RepliesI wrote a backup utility that synchronizes a list of folders. Errors appear in a list. In the list I can right-click to retry, exclude the folder next time, or open the folder in explorer to examine.
When I shell to explorer I get an AccessViolationException. Form1 opens Form4 with Form4.ShowDialog(), and that's where the error occurs. The error does not occur within Form4 where the shell function is called. Memory must be getting trashed somehow.I've used two methods, Shell and System.Diagnostics.Process.Start. Each produces similar results. Shell waits awhile before causing the error, but Process.Start causes the error immediately.
This is VB.Net 2010 using framework 4, though I did resolve a shell problem once before with VBA by writing out a VBScript file then shelling to the VBScript file. I don't think the process being started is isolated enough. It's sharing memory or something else.
set the Icon for an item in a shell handler? I've set a contextmenu handler to the extension .savdata and added the text "Open with ConvertFile" to the handler so that the context menu for .savdata looks like this:
Open with ConvertFile
-------------------------------------
Send To >
[code]....
So how can I use "my.computer.registry.HKEY_CLASSES_ROOT" in VB 2008 express edition to add an Icon file path to the left of the context menu handler?
I'm just getting started in VB.net using vb.net 2010 . I thought what I had left to do today was simple but not to be.I am simply trying to open a zip file that the user has selected.No mater how I have tried to send the filename (with quotes added, chr(34) & selfilename, set permissions, confirm file is found) I get Error 53 File Not Found.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SelFileName As String
Dim ReturnValue As Boolean
SelFileName = ListBox1.SelectedItem 'Contains the full path and filename
[code].....
Here's an example code so you can understand my problem:
Dim test1 As String
Dim test2 As String
Dim test3 As String
[code]....
shell.Run("""testProgram""test1 test2 test3 test4") 'I know this is wrong.My problem is in the last line. I want the contents of the strings to be printed, not the names of the strings, and I don't know how to do that.
Is there a way to get the results of the shell function?
for example:
shell("test.bat")
i want to get the results of this shell command and pass it to a richtextbox.
I have a VB.net program in which I call the Shell function. I would like to get the text output that is produced from this code in a file. However, this is not the return value of the executed code so I don't really know how to.
This program is a service but has access to the disk no problem as I already log other information. The whole service have multiple thread so I must also make sure that when the file is written it's not already accessed.