shortcuts

Windows Environmental Variable for Month Year

℡╲_俬逩灬. 提交于 2019-12-01 08:49:16
问题 I have a process that writes log files and screenshots to a folder on a regular basis creating between 30-50 files a week. The folder structure is ..\Year\Month\filename.ext , and it cannot be changed. I'd like to create a shortcut to stick in my Favorites so I can get to this folder quickly but I need a variable for the YEAR and MONTH . Are there an environmental variables for this? Any bright ideas on how I could create one that updates automatically preferably without a script or scheduled

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

随声附和 提交于 2019-11-30 19:32:31
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 Perhaps one (or a combination) of the following will help you: Switch between a Header and a CPP File in .NET (a macro at codeproject) Switch between header and impl files in VS.NET (describes how to create the macro and bind it to a key) Switch between Source and Header C++ Files (A recent macro from codeguru) Macro to Switch Between Header and CPP

How to install program shortcuts for all users?

二次信任 提交于 2019-11-30 17:36:15
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 shortcut? dommer Stuart Preston's blog has a good description of how to do this: Installing a shortcut for "All Users" (via Wayback Machine) Edit: The synopsys is: In your .wxs file, include the following: <Property Id="ALLUSERS"><![CDATA[2]]></Property> This will

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

空扰寡人 提交于 2019-11-30 16:55:47
问题 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 回答1: Perhaps one (or a combination) of the following will help you: Switch between a Header and a CPP File in .NET (a macro at codeproject) Switch between header and impl files in VS.NET (describes how to create the macro and bind it to a key) Switch

How to prevent a Beep sound if global keyboard shortcut is pressed in the other application?

只愿长相守 提交于 2019-11-30 16:21:14
问题 Mac OS X 10.6 — Cocoa I'm using global event monitor for displaying status item menu using custom keyboard shortcut: globalEventMonitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(NSEvent *event) { if ([event keyCode] == kVK_F12) { [self handleGlobalShortcut]; // How to prevent system beep? } }]; This solution is working but the system generates a beep sound every time when user presses F12 and active application doesn't respond to this key event. Is there any way

shortcut to run concrete test

左心房为你撑大大i 提交于 2019-11-30 06:36:48
I can run the whole Junit test using: Shift + Alt + X , T But how I can run a single test? Using the mouse I click on concrete method and Run As -> Junit test anyone know shortcut for this case ? Thanks Thomas Jung Shift + Alt + X , T runs one test method if the caret is on the method name. rwblackburn I find the " Shift - Alt - X " gives me trouble sometimes, sometimes what I think is the last executed command is not always and sometimes I end up running something I did not mean to. Also when doing TDD you rerun the tests so often and sometimes want to rerun the test from one project for a

Use PowerShell to unpin Taskbar shortcut depending on shortcut Target Path

牧云@^-^@ 提交于 2019-11-30 05:17:23
问题 Having an issue with some PowerShell. Basically I am trying to remove certain Taskbar shortcuts based on the shortcuts path/exe file. The following code I have gets the pinned shortcuts and their name from the AppData folder: Function Get-TaskbarShortcuts { Begin{ Clear-Host $Path = "C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" $x=0 } # End of Begin Process { $TaskbarShortcuts = Get-ChildItem $Path -Recurse -Include *.lnk ForEach($ShortCut in

How can I test programmatically if a path/file is a shortcut?

一个人想着一个人 提交于 2019-11-30 04:48:28
问题 I need to test if a file is a shortcut. I'm still trying to figure out how stuff will be set up, but I might only have it's path, I might only have the actual contents of the file (as a byte[]) or I might have both. A few complications include that I it could be in a zip file (in this cases the path will be an internal path) 回答1: Shortcuts can be manipulated using the COM objects in SHELL32.DLL. In your Visual Studio project, add a reference to the COM library "Microsoft Shell Controls And

How to install program shortcuts for all users?

我怕爱的太早我们不能终老 提交于 2019-11-30 01:28:02
问题 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 shortcut? 回答1: Stuart Preston's blog has a good description of how to do this: Installing a shortcut for "All Users" (via Wayback Machine) Edit: The synopsys is:

Pinning advertised shortcuts on the taskbar in windows 7

☆樱花仙子☆ 提交于 2019-11-29 15:24:53
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 the taskbar. (So the running app does not re-use the existing taskbar icon.) Does anyone know how to fix this? Unfortunately, the choice of using an advertised rather than a direct shortcut is not up to me. By the way, there is another way to pin a program to the