shortcuts

How to find the Target *.exe file of *.appref-ms

ε祈祈猫儿з 提交于 2019-12-02 17:22:51
I have to make a Backup of the Program running from the file *.appref-ms When i Opened the File GitHub.appref-ms using text editor i found http://github-windows.s3.amazonaws.com/GitHub.application#GitHub.application , Culture=neutral, PublicKeyToken=8f45a2159c87c850, processorArchitecture=x86 Where is the Target Pointing in the LocalDisk, Editing the PublicKeyToken Resulted in Default or Null Icon. Editing the URL Resulted in "Application Cannot Start". How is *.appref-ms Targeting the Exe??? This doesn't answer my Question Note : I tried Opening the File Offline, Still it Works Perfectly.

Open Powershell in a specific directory from shortcut

别等时光非礼了梦想. 提交于 2019-12-02 17:14:02
This sounds like it should be so simple... I must be dumb. All I want is to make a windows short-cut that opens Powershell into a specific directory: I'm using the target: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command {cd c:/path/to/open} Put it just spits out the command as text. or use : powershell.exe -noexit -command "cd c:\temp " You can also set the "Start in" shortcut field to your desired location. try: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "cd c:/path/to/open" Ok - you need to use the & parameter to specify it's a

VIM: available shortcuts?

坚强是说给别人听的谎言 提交于 2019-12-02 16:16:30
I use many shortcuts for my work in vim. Other shortcuts are taken by plugins. Sometimes I would like to add a shortcut for a new command but note afterwards that the shortcut was already taken. Is there a way to see a list of all available shortcuts in VIM? (all ctrl-shift-alt shortcuts) MBO Type :help index to see the mappings (shortcuts as you name them) and commands defined by vim itself. Type :map to see the mappings defined by your vimrc and plugins. Type :verbose map to know where each mapping was defined. Also :help map-listing to check what's displayed, but you probably already know

Modify Windows unicode shortcuts using Python

落爺英雄遲暮 提交于 2019-12-02 15:40:30
问题 Following this question, I've settled on the following Python code to modify Windows shortcuts. It works for English based shortcuts but it doesn't for unicode based shortcuts. How could this (or any other) snippet be modified to support unicode ? import re, os, pythoncom from win32com.shell import shell, shellcon shortcut_path = os.path.join(path_to_shortcut, shortcut_filename) shortcut = pythoncom.CoCreateInstance (shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERVER, shell.IID

How do I close all open tabs at once?

ぐ巨炮叔叔 提交于 2019-12-02 13:47:12
If I have 10 tabs opened, I have to close each one using ":q" separately. How can I close them all at once? fuentesjr Shortest/simplest/fastest way would be: :qa To save work in all tabs and quit: :wqa I often use :tabo to close all other tabs. That can be done with the following command (in normal or escape mode): :tabdo :q "tabdo" apparently executes the command for all the open tabs. Adding to what fuentesjr said: :qa! Will force quit all tabs, if you don't care about saving. You can use any of these Vim Ex commands to Exit Multiple Windows And Buffers : :qa :qall Exit Vim, unless there are

Modify Windows unicode shortcuts using Python

杀马特。学长 韩版系。学妹 提交于 2019-12-02 05:46:55
Following this question , I've settled on the following Python code to modify Windows shortcuts. It works for English based shortcuts but it doesn't for unicode based shortcuts. How could this (or any other) snippet be modified to support unicode ? import re, os, pythoncom from win32com.shell import shell, shellcon shortcut_path = os.path.join(path_to_shortcut, shortcut_filename) shortcut = pythoncom.CoCreateInstance (shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERVER, shell.IID_IShellLink) persist_file = shortcut.QueryInterface (pythoncom.IID_IPersistFile) persist_file.Load (shortcut

Getting the starting shortcut in c#

寵の児 提交于 2019-12-02 01:11:41
问题 Lets say that I have an executable and when it is started I want to know how it's started. I.e. I would like to know if it is started with a shortcut or directly. With this: string test = Environment.GetCommandLineArgs()[0]; I can get the path of the executable, but this is always the same, even if it's started by a shortcut. Lets say my executable is named c:\text.exe and I start it directly, then test = 'c:\test.exe' If I create a shortcut i.e. c:\shortcut.lnk (with target c:\test.exe) I

Getting the starting shortcut in c#

左心房为你撑大大i 提交于 2019-12-01 21:59:06
Lets say that I have an executable and when it is started I want to know how it's started. I.e. I would like to know if it is started with a shortcut or directly. With this: string test = Environment.GetCommandLineArgs()[0]; I can get the path of the executable, but this is always the same, even if it's started by a shortcut. Lets say my executable is named c:\text.exe and I start it directly, then test = 'c:\test.exe' If I create a shortcut i.e. c:\shortcut.lnk (with target c:\test.exe) I want test to be 'c:\shortcut.exe' but it is 'c:\test.exe' I strongly suspect this to be impossible

How to quickly surround text with HTML markup in VS 2008?

☆樱花仙子☆ 提交于 2019-12-01 18:12:59
I am working with Visual Studio 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 a text, I went to: the store and I want to bold it, I have to type <b>the store</b> . Is there a quicker and easier way to do this? Mike Chaliy With HTML Editor just press Ctrl + B ... With regular text editor VS does not provide something build-in, but you can add custom macros. Something like the following will do job for you. Sub MakeSelectionBold() DTE.ActiveDocument.Selection.Text = "<b>" + DTE.ActiveDocument

How to quickly surround text with HTML markup in VS 2008?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 17:36:06
问题 I am working with Visual Studio 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 a text, I went to: the store and I want to bold it, I have to type <b>the store</b> . Is there a quicker and easier way to do this? 回答1: With HTML Editor just press Ctrl + B ... With regular text editor VS does not provide something build-in, but you can add custom macros. Something like the following will do job