shortcuts

Visual Studios - Share folders between different projects

I've got two projects, one CF2.0 project and one NET2.0 project. These projects are related to a CF2.0 application project and a NET2.0 WebService project respectively. The projects are my Data Access Layers and they are both identical, apart from the ProtoBuf Dll version. Is there any way that my NET2.0 DAL project can just reference ...

NSIS - shortcut in the left side of the start menu

Hi All, Windows XP start menu is divided into two parts, the left and the right. I'm able to add to the all programs folder of the start menu, but how do you add a shortcut for your application on the left side of the start menu? Thanks! ...

desktop shortcut icon not showing in web setup project

i've created a web setup project and i wanted it to create a desktop shortcut to the web application (ex: http://localhost/xx/yy.aspx). up to this point it was pretty easy: i created a shortcut (doesnt matter where), gave it the url i wanted, added this to the User's Desktop special folder of my web setup project, and it was placed on th...

How to open the red-button menu on Visual Studio (2008) with the keyboard?

When you type something and there's some problem you get a tiny red rectangle at the end of the symbol/word that has the problem and when you hover the mouse over it, you get a button and when you press the button you get a list of possible actions to fix the problem, including adding using statements or refactoring. Is there a way to o...

Is there a way to resolve a .lnk target that works for links that end up in c:\windows\installer ?

The usual way to resolve lnk involve using WShell.WshShortcut or IShellLink that way : var WshShell = WScript.CreateObject("WScript.Shell"); var oShellLink = WshShell.CreateShortcut(strDesktop + "\\some-shortcut.lnk"); WScript.Echo(oShellLink.TargetPath) But there are links that can't be resolved that way : the resolution end up in c:...

ReadDirectoryChangesW thinks shortcut is being deleted right after creation

Hi, I am using this implementation of ReadDirectoryChangesW to monitor changes to the desktop. My program plans to run some small program when a file is created on the desktop. Now the problem I am running into is when I create a new shortcut via the right click context menu ReadDirectoryChangesW gets a notification saying the file ha...

Making a windows shortcut start relative to where the folder is?

I have a game that uses this file structure: GAME FOLDER ->data ->data->run.bat I want to put a shortcut to run.bat in GAME FOLDER, but if I move it, or someone else installs it it won't work because the target is wrong. Is there a way to make the target and "start in" relative to GAME FOLDER? ...

How to keep application shortcuts current/in sync ?

I have an application auto updater which checks for new updates, moves the existing files including the app.exe into a new folder and copies the new version .exe + .dll's into the app folder everything has been working perfectly without issues but there's one small glitch - the shortcuts created at the time of the original install becom...

How to read installer shortcuts with C# (WPF)

Background: I've decided to teach myself C# through WPF, and I'm writing a small application that needs to get a list of Start Menu shortcuts and their targets and store them. Basically, I'm trying to take all the shortcuts and put their target applications' paths into memory. However, I've run into a problem trying to read Windows Insta...

What is the shortest way of inserting a variable into text with PHP?

I'm wondering if there is a shorter way of inserting text in PHP than <?php $city = "London"; ?> This website is a funky guide to <?php print $city; ?>!!! For example, using ruby on rails, I could set city = 'London' somewhere in the code, and in my .erb file I could do This website is a funky guide to <%= city %>!!! I did rea...

How can I run a Windows shell script prior to launching an application?

Is there a way to configure an application shortcut so that a Windows shell script is run prior to kicking off the application? In my case, I want to back-up some files before the application runs. Thanks! ...

How do I assign a device level hotkey to my Blackberry App?

Blackberry devices have shortcuts to open applications. For example, if you hit the 'T' button, the tasks app will open. (BTW, you have to have "Call from Home Screen" disabled in the Phone App Settings for this to work) How can I assign a shortcut key to open my own application? For clarity and in case the link dies, I'll post the i...

Managing temporary code.

This is (pehaps bad) habit I have formed and I am wondering if others have experienced the same thing and strategies for managing it. A lot of times I will write a fair amount of experimental throw away code in the course of coming to the most effective solution. Sometimes complex loops and arrays and various functions that have a fairl...

Pinning advertised shortcuts on the taskbar in windows 7

My application launches using an advertised shortcut in the Windows Start Menu. This means the shortcut doesn't link directly to my exe, though the exe is ultimately what runs. My problem is: when I right click the shortcut in the Windows 7 taskbar and select Pin to Taskbar, and then launch my application, I end up with two icons in th...

deadline shortcuts

Most of the time I write very maintainable and well design code(even at home). However I just wrote db + msword report app for my friend and code is really bad - lots of code duplication and development speed driven db design - I just dont care at all about this code. I just wanted to finish it fast and go to sleep. I came up with some ...

Search and replace: What's the proper shortcut?

Very simple dilemma. A user needs to be able to do a search-and-replace in a large piece of text. Code to do this is a piece of cake. No problems there. Works like a charm! Don't break your head over that. That's solved! It's a non-issue... No, problem is defining a good shortcut for this function. While I would prefer to use CTRL+R as ...

C# Syntax Shortcuts

I was wondering if there exists somewhere a collection or list of C# syntax shortcuts. Things as simple omitting the curly braces on if statements all the way up to things like the ?? coalesce operator. ...

How do you create an application shortcut (.lnk file) in C# with command line arguments

I've written a simple FTP based file synchronization program. The settings of which can be stored in an XML file. I want users to be able to quickly open the program using various configurations. So I set up the program to be able to read the path to a config file through command line argument. This way shortcuts can be created on the de...

Is there a way to override previous registred actions with a shortcut ?

I have a unit with a lot of actions, some actions have shortcuts and some have even the same shortcut. This is because they belong to different modules in applications and they are not in context at the same time. Now I have a global nonmodal dialog (called objectinspector) that can be started anytime anywhere. It have some actions wit...

PHP Session Variable shortcuts?

So I'm doing some maintenance on a PHP site that is using $_SESSION variables. I started seeing some very very weird behavior and after hours of debugging I just figured this out. As an example, lets say I have a session variable setup like this: $_SESSION['user']['id'] = 123; $_SESSION['user']['firstname'] = 'John'; $_SESSION['user']['...