shortcuts

Editing shortcut (.lnk) properties with Powershell

I've found a nasty VBS way to do this, but I'm looking for a native PoSh procedure to edit the properties of a .LNK file. The goal is to reach out to remote machines, duplicate an existing shortcut with most of the correct properties, and edit a couple of them. If it would just be easier to write a new shortcut file, that would work to...

How many ways can I get Bash alias completion on a partial substring?

Question: I have a question that is apparently not answered by this already-asked Bash completion question on Stack Overflow. The question is, how to get Bash alias completion (for any alias) on a partial substring. Example: For example, assume I have the following aliases: open.alicehome="cd /usr/home/alice" open.bakerhome="cd /usr/ho...

How do I close all open tabs in VIM at once?

If I have 10 tabs opened, I have to close each one using ":q" separately. How can I close them all at once? ...

What is the MS Win32 API to know a folder is shortcuts?

In Vista and Windows 7, there are many folders are shortcuts, like "C:\Users\Administrator\Application Data", use FindFileFirst serial API can enumerate all files under the folder, however we can NOT open it in Windows Explorer, I will also get error while call CreateFile to open the folder or the file enumerated by FindFileFirst serial ...

Creating a web shortcut on user desktop programmatically

There are quite a few resources for programmatically creating .lnk type shortcuts to files and programs on the desktop but I'm wondering how to create a shortcut to a web URL. From what I can gather, the web URL shortcut is a text file ending in .URL and contains a ini-like definition such as: [InternetShortcut] URL=http://www.google.c...

How to quickly surround text with html markup in vs 2008?

Hello, I am working with the vs 2008 editor. Is there a way to take a piece of text for example, highlight it and use shortcuts to quickly add markup. For example, lets say I have the text, I went to the store and I want to bold the line the store, I have to type <b>the store</b>. Is there a quicker and easier way to do this? Thanks...

GIve me short cut for visual studio 2008 IDE

In eclipse, F3 or Ctrl+mouseClick in particular on a (function, class, interface, variable) name opens the corresponding (function, class, interface, variable). but in visual studio only a same class method definition opens using F12. What is the corresponding shortcut to Eclipse's F3 / ctrl+click ...

Windows shortcuts without a path

Hi all 'Regular' windows application shortcuts have a target which is a path to an executable file. This path is visible (and editable) in the shortcut's properties dialog. But many shortcuts have no such path, only a (read only) application name is displayed. All the MS Office programs, for example, have such shortcuts. How do these ...

Wix Local Settings\App Data Shortcut

How can I create a shortcut using Wix with a target of "%UserProfile%\Local Settings\Application Data\Foo\Logs"? <Shortcut Id="LogsStartMenuShortcut" Name="Logs" Target="%UserProfile%\Local Settings\Application Data\FalconMobileServer\" Icon="icon.ico"/> It doesn't like the % signs in the target. ...

.NET App Shortcut for MSI When Run By Regular User

I have a C# application that uses the built-in MSI builder in Visual Studio 2005. After deploying the application using the MSI (via CD) onto the target computer, I launch the Desktop shortcut (as privileged user) and the program runs as expected. But, if I log out and then back in as an unprivileged user and try to run the application...

Is there a way to follow a windows fileystem shortcuts programatically in C# without using COM?

Back in .NET 1.0 days I wrote a method to return the target of a shortcut on MS Windows. It did this through using an interop to the Windows Script Hosting Object Model and brute forced through the COM interface: private FileInfo GetFileFromShortcut(FileInfo shortcut) { FileInfo targetFile = null; try { IWshRuntime...

Is there a Visual Studio shortcut for replacing the beginning and ending tag name in XAML/XML/HTML at once?

I want something similar to this post but with Visual Studio. This would be very helpful when editing XAML, XML, or HTML. For instance: <StackPanel> <Button>I'm A Button</Button> </StackPanel> If I start changing the 'StackPanel' tag, I want to automatically change the end tag to match (say if I switch it to a 'Grid' instead). ...

Visual Studio 2008 macro to switch between header and source files?

Does anyone know how to make a macro or something to switch between foo.hpp and foo.cpp? I would really appreciate having a macro like this. I guess it would help if it actually opened the corresponding file, but kept the old one in a tab. Thanks ...

Disabling Accessibility Shortcuts in .NET Application?

This msdn article -- http://msdn.microsoft.com/en-us/library/bb219746(VS.85).aspx#Disabling_Accessibility_Shortcut_Keys -- provides information for C++ programmers on how to temporarily disable the windows shortcuts for accessibility (such as holding Shift for 8 seconds, or pressing Shift more than 5 times in quick succession). Surely t...

How to install program shortcuts for all users?

I'm creating an installer msi file using the Windows Installer XML toolkit. When installing the created msi file, a shortcut placed under the ProgramMenuFolder folder results in a shortcut for the Administrator user only. How do I let the installer create a shortcut under the All Users profile, so that everyone on the machine has the sho...

How to load static data in Mirth, avoid many roundtrips to a database

Mirth is a broker to help with healthcare application HL7 message integration. My question is about saving yourself the trouble of hitting your own datastore everytime you want to do a lookup on some data contained within the HL7. Scenario: for each message received by the channel, I want to find the facility's mnemonic/code/ID and get...

c#, How to solve the *.lnk file title?

I want to get title of shortcut, not file name, not description, but title. how to get it? I have learn to resolve its target path from here, http://stackoverflow.com/questions/139010/how-to-resolve-a-lnk-in-c but i don't find any method to get its title. ...

Secondary Shortcut does not fire

I am using Delpho 2006. The Scenario: On the data module I have an ActionList. One of the actions has a shortcut Ctrl+F4 and I want to have a secondary shortcut Ctrl+W. I tried all of the following: Adding Ctrl+W to the actions SecondaryShortcut list in the IDE. Adding it in the DataModuleCreate procedure using either ActFileCloseFil...

WiX condition properties passed from command line don't work?

I have a property for whether to install shortcuts that need to be passed via command line arguments. The conditions seem to work when I set the properties within the wxs file, but they seem to be ignored when setting them through the command line. From the log I see that they are being set: MSI (s) (24:C8) [11:01:32:234]: PROPERTY CH...

Apply property setting to all like controls in Project in Visual Studio

Lets say I have multiple DataGrids throughout my winform app and I want to set the BackColor on ALL of them to Purple in Visual Studio. What is the fastest way of setting a Property for multiple items NOT located on the same Form? Thanks! ...