.net - Programmatically Added A Shortcut To The All Users Desktop And Can't Remove It?

Apr 12, 2011

In VB.NET I used wscript.shell to add a shortcut to the desktop. I didn't realize it created the shortcut on the "All Users" desktop, which means I can't delete it. I don't have admin rights as this is my work computer, and asking for admin isn't an option. WScript.Shell has a createshortcut method but not a remove shortcut method! I've been googling for days with no luck. Windows XP Pro 2002, SP3.

View 1 Replies


ADVERTISEMENT

.net Desktop App : Log Users Application's Usage By Users After Remote Deployment?

Apr 3, 2012

1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.

2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.

View 2 Replies

Vb.net Desktop App : Log Users Application's Usage By Users After Remote Deployment

Apr 4, 2012

1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.

View 1 Replies

Get Path Of 'All Users' Desktop And 'All Users' Start Menu

Jun 10, 2008

I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.

View 5 Replies

Copy Shortcut From Desktop?

Apr 22, 2010

What I'm trying to do is copy a shortcut from my desktop to my form. So the I would have a shortcut on my form just like the desktop.

View 2 Replies

Creating A Desktop Shortcut?

Jul 27, 2010

How do I create A Desktop Shortcut ? Is there any particular command that will do it for me ?

View 3 Replies

Delete A Shortcut On Desktop?

May 29, 2011

I'm having issues with using this command.

Running: VS 2008
OS: Windows 7

I'm trying to delete a shortcut on my desktop.

I use the command:

Dim outdatedShortCut As String = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "" & outdatedShortCutName & ".lnk"
Kill(outdatedShortCut)

What happens is whilst it DOES delete the shortcut from the desktop, it's stays on my desktop until I have done a refresh.

My question is: -

1. Is this normal?

2. If it is normal, what steps do I take to change this so it just deletes?

2a. Do I need to programmatically force a desktop refresh?

2b. Or is there another delete method that bypasses the need to refresh?

View 1 Replies

How To Create A 'Desktop Shortcut'

Aug 2, 2011

I am trying to create a 'Desk Top' Short Cut, for a Web Browser I created with Visual Basic 6. I will put it onto my website, so the public can download it (the Web Browser).*It will be an exe (Executable File).My short cut ( on the desk top) will*be a picture*ICON .ico file, which is a logo I created.I imagine it will be*stored*in the C Drive of most computers, in the Program Files. PATH: C:Program ilesHomeChannelTVHomeChannelTV.exe *I've tried to learn from many forums. The code I have created is below. I'm getting 1 error.

MyShortcut = CType(WshShell.CreateShortcut(DesktopFolder & ".lnk"), IWshRuntimeLibrary.IWshShortcut)
MyShortcut.TargetPath = Application.StartupPath & "C:Program

[code].....

View 4 Replies

IDE :: Create A Desktop Shortcut?

Mar 4, 2008

I have been asked to create a web application which would allow users to login to the system using a shortcut from the desktop. The short cut has to be user specific.

View 10 Replies

Create A Desktop Shortcut For Project

Jun 20, 2009

how can i create a desktop shortcut for my vb.net project that i've done.?my project is a Sudok game.. .i mean how can i open it without using Visual programs?

View 8 Replies

How To Create Desktop Shortcut Icon

Jul 25, 2009

I am working in VB.NET 2003. I have one exe file in a particular folder. I want to create desktop shortcut icon for that exe file. How can I do this?

View 1 Replies

VS 2008 : Display Desktop Shortcut Name?

Mar 5, 2010

If i drag 'n drop a desktop shortcut to a picturebox , how can i display its name on a mouse_hover event ? Or any other way.

View 5 Replies

Create A Desktop Shortcut To Application On Install

Dec 22, 2009

How do I create a desktop shortcut to my application when the user presses setup to install?

View 7 Replies

Desktop Shortcut For Click Once Deployed Application?

Aug 12, 2009

I would like to create a desktop shortcut for my clickonce deployed application.The IDE is VS2005 and there is no need for upgrading to 2008 yet.

View 3 Replies

Drag An Drop A Desktop Shortcut To The Form?

Feb 19, 2010

Is it possible to drag an drop a desktop shortcut to the form and then launch the program from there ? Is so how would this be done ?

View 39 Replies

Drag And Drop On A Desktop Shortcut Icon?

Jun 1, 2011

I found this thread[url]...

and I have encountered the exact same problem, that the desktop shortcut icon created by the Setup program does not work when dragging and dropping a file (in this case an Access-database) onto it,

while a shortcut manually created works just fine.

I do not understand the answer in the above thread. But, anyway I would like to find a way to solve the problem directly, preferably through the Setup program itself.

View 2 Replies

Enable Create Desktop Shortcut Option?

Sep 18, 2009

I have a client app written in VB (Visual Studio 2008) + VS 2008 SP1. I can see the option "Create desktop shortcut" under --- Publish > Option > Manifest but it is disabled.What do I need to do to enable it so I can have it checked before publishing it?

View 3 Replies

Setup Application Create A Desktop Shortcut?

Jan 15, 2010

I have a project that I've published to a network drive with a setup file that works great but I cannot get it to create a Desktop shortcut. I don't have the option in the publish settings to allow this and I cannot find code that will work for me. Does anyone have any suggestions how to have the setup file automatically create a desktop shortcut? I'm using Visual Studio 2008.

View 1 Replies

VS 2010 .net Create And Delete Desktop Shortcut?

Mar 24, 2011

I'm writing a vb.net (2010) app to extract a zip file in XP to a specific folder. That part works fine. Now I want to create a desktop shortcut to an application (if it exists I need to delete it first)

This should be an easy to find answer but I believe my eye is beginning to twitch!2 error messages: First Error: "Type expected" On Dim shortCut As IWshRuntimeLibrary.IWshShortcut = DirectCast(WshShell.CreateShortcut(FileName, IWshRuntimeLibrary.IWshShortcut), == this is a simple syntax error but I thought the type was the IWshShortcut ==

Second Error: On "With Shortcut" it fusses: " cannot refer to an instance member of a class from within a shared method or shared member initalizer without an explicit instance of the class."

[Code]...

View 3 Replies

Winforms - Create Shortcut On Desktop Without Installer?

Apr 6, 2011

I want to create desktop shortcut for exe file through program. I do not want to use installer to do this. Can a piece of code in program do this?

View 1 Replies

Added A Shortcut On Start Menu, That Points To Application?

Jun 23, 2009

I'm running into this one very specific issue:

- I have a VB.Net 2005 Project for which I've created a Setup Project.
- In my Setup Project, I've added a shortcut on my Start Menu, that points to my Application.
- After deploying it, all works great.

- One of my users chooses to *copy* the shortcut from the Start Menu into their Desktop.

- I then create an upgrade for this Application. Again, the deployment works great. They can start my application from the Start menu.

- They double-click on their icon in the Desktop and they get a popup: Title of the message box: Problem with Shortcut Description of the message box: (X) The parameter is incorrect.

The shortcut's Target, is blank ( which I believe is the problem ).I'd love to be able to specify an actual [TARGETDIR]myApp.exe type of string as the shortcut's target in my Setup Project, but I can't do this.Instead I have to point it via UI, to my Target Application ( which I'm assuming is resolved at install-time ). The problem with this is that it appears that the shortcuts get re-evaluated every time you re-install / upgrade the application. Since my previous version is technically not installed anymore, my shortcut gets invalidaded, even though the target path is still the same and I haven't changed my executable's file name.

View 1 Replies

Add A Desktop Shortcut Icon To Inside The Project Settings?

Nov 25, 2010

I just created a game program out of VBE2008 and did the build process to turn it into a .exe file.When I did the build function I apparently missed the step of attaching an icon to the project.Now when I do a desktop shortcut to the .exe file there is no pretty icon - just an ordinary looking window box.How do I add a desktop shortcut icon to inside the project settings?

View 1 Replies

IDE :: Add A Function To Program That Adds A Desktop Shortcut When Installing

Aug 20, 2009

I am trying to add a funktion to my Program that adds a desktop shortcut when installing.I get a shortcut but it doesnt behave as the program meny shortcut.It doesnt check for newer versions as tje program meny shortcut does.I've been looking at other code but I dont understand how it works. And I dont get it to work.[code]

View 4 Replies

Passing Parameters And Bug In The .Com Object For Making A Desktop Shortcut

Feb 9, 2011

Here's the code that is causing my problem, I have no idea why though. All necessary services have been imported.

'Creates Prompt File
Sub CreateFile()
Dim createstring As String = ""

[Code].....

View 2 Replies

VS 2008 - How To Get Desktop Shortcut Icon Names Into String

Apr 8, 2009

How can I get all the names of the shortcuts icons in the desktop into a String?
Like: Computer, Microsoft Office Word 2003, Internet Explorer....etz.
I tried to use "My.Computer.FileSystem..." , but didn't find a way.

View 3 Replies

Programmatically Open An Outlook Shortcut?

Jun 12, 2012

I'm wondering if there is a way of programmatically opening an Outlook Shortcut from my addin.I've created the shortcut as follows

Sub AddShortcut()
Dim myOlBar As Outlook.OutlookBarPane
Dim myolGroup As Outlook.OutlookBarGroup
Dim myOlShortcuts As Outlook.OutlookBarShortcuts

[code]....

I'm guessing I need to use InvokeMember in some way

myOlShortcuts("MSHomepage").GetType().InvokeMember(..)

But when I use GetType().GetMethods() I can't see any Click members or something similar.

View 1 Replies

Create A Text Document On The Users Desktop?

Sep 19, 2011

Iv tied;
Dim file As String
Dim saveLocation As System.IO.FileStream

[code].....

View 5 Replies

Add Users To SQL Server Programmatically?

Dec 30, 2009

So I'm creating this app that will install SQL server 2008 express, add some SQL users and then import a database.

Is there a way to create users for SQL express in Vb.net?

View 1 Replies

Added A TableAdapter And Made A Query With Users And There Passwords?

Sep 24, 2011

i'm asking a lot of question here, because i have finally found a real helpful place to ask,and i have a lot of questions, anyways i made a login system in which i used an access database, everything is working fine, I Added a TableAdapter and made a query with users and there passwords, this is the code i used:

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click

View 1 Replies

.net - Updating Programmatically Added Controls?

May 24, 2012

I have a custom control which I add a number of to a flowlayoutpanel:

Dim drive As New WindowsControlLibrary1.UserControl1()
drive.FileSystemlable = reader.GetString(2)
drive.AbalableSpaceLable = Convert.ToInt32(reader.GetString(4) / 1024)
drive.TotalSpaceLable = Convert.ToInt32(reader.GetString(5) / 1024)
drive.SetVolumeLable = reader.GetString(3)

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved