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...
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...
If I have 10 tabs opened, I have to close each one using ":q" separately. How can I close them all at once?
...
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 ...
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...
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...
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
...
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 ...
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.
...
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...
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...
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). ...
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
...
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...
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...
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...
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.
...
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...
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...
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!
...