shortcut

How to set shortcut working directory in cx_freeze msi bundle?

不打扰是莪最后的温柔 提交于 2019-11-30 16:48:02
I was working on a Python program which deals with SQLite3 databases. I made it as an MSI setup file by using cx_Freeze. Windows shortcuts produced by .msi set-up files generated by cx_Freeze do not provide the working directory property of the shortcut. Thus, when I run the executable using the shortcut created on the desktop, it's creating database files on the desktop itself. This can be changed by providing a different working directory to the shortcut. How do I do that? I was able to fix the problem by making a small change to cx_Freeze/windist.py. In add_config(), line 61, I changed:

Is it possible to make a shortcut to a relative path in Windows that runs as admin?

a 夏天 提交于 2019-11-30 16:25:44
问题 To create a shortcut with a relative path, set the target to the following. %windir%\system32\cmd.exe /c start your_relpath\app.exe [your_args] It is also straightforward to make the program run as administrator. Properties > Advanced > Run as administrator But putting the two together doesn't work. When cmd.exe is started as admin, it loses the current working directory and goes to %windir%\system32 . The relative path starts there which is not intended. Is there any way to make a shortcut

How to set shortcut working directory in cx_freeze msi bundle?

一个人想着一个人 提交于 2019-11-30 16:08:23
问题 I was working on a Python program which deals with SQLite3 databases. I made it as an MSI setup file by using cx_Freeze. Windows shortcuts produced by .msi set-up files generated by cx_Freeze do not provide the working directory property of the shortcut. Thus, when I run the executable using the shortcut created on the desktop, it's creating database files on the desktop itself. This can be changed by providing a different working directory to the shortcut. How do I do that? 回答1: I was able

izpack: create shortcut on windows

。_饼干妹妹 提交于 2019-11-30 14:54:53
问题 I use izpack to create an installer for my application. So far I was able to create the installer and on my linux machine everything is fine. The problem is that on the windows machines I tested it on (Win7 and WinXP) the installer did not show the shortcut panel. I did read the documentation troubleshooting section and took care that I have the natives in my installer. Same goes for the shortcut xml file, they are in the installer in the resources path. I also read that most likely it is a

izpack: create shortcut on windows

橙三吉。 提交于 2019-11-30 12:08:50
I use izpack to create an installer for my application. So far I was able to create the installer and on my linux machine everything is fine. The problem is that on the windows machines I tested it on (Win7 and WinXP) the installer did not show the shortcut panel. I did read the documentation troubleshooting section and took care that I have the natives in my installer. Same goes for the shortcut xml file, they are in the installer in the resources path. I also read that most likely it is a case sensitive typo or something similar simple but could not figure it out. Here is my shortcut xml: <

Visual Studio, Collapse/Extends Regions ONLY shortcut

主宰稳场 提交于 2019-11-30 08:51:51
Is there any shortcut to collapse/expand the regions ONLY? Meaning, if I have a region with 5 methods in it, and I hit collapse, the region will collapse, and when I will hit expand, the region will expand and I will see all 5 methods with the same state as it was before (collapsed/expanded). Currently the shortcuts I found collapse ALL, or expand ALL, or substitutes the "All" word for the "Current" word. I'm looking for a shortcut that will collapse only regions, and will not do anything to the other blocks inside a region. Same thing with expanding. If there is no such thing, maybe someone

Change a shortcut's target from command prompt

梦想与她 提交于 2019-11-30 08:46:00
I'm normally a Linux guy, but I need to write a batch script on Windows to change the target of some shortcuts. Is there a command to do that? I doubt there is a way to do it with a batch script. It's doable in VBScript, though. Set sh = CreateObject("WScript.Shell") Set shortcut = sh.CreateShortcut("C:\Wherever\Shortcut.lnk") shortcut.TargetPath = "C:\Wherever\Whatever.txt" shortcut.Save Save the script in a file ending in vbs and run it from the command line using cscript whatever.vbs . (Don't be fooled by the name -- CreateShortcut is used to both create and modify shortcuts.) There isn't a

Keyboard shortcut for a button

孤街浪徒 提交于 2019-11-30 08:15:07
In C# (Microsoft Visual Studio 2010 ), how can I assign a keyboard shortcut to a button such as the following? private void closeButton_Click(object sender, EventArgs e) { // Close the program this.Close(); } I know I can use the "&" character in the button's Text and create an Alt - n shortcut, but I'd like to create a single keypress shortcut, such as c to execute the above. dknaack KeyDown is your friend ;) For example, if you want the shortcut key A while Shift is pressed, try this: void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.A && e.Shift) // Do something } If

How to clear console in sublime text editor

ぐ巨炮叔叔 提交于 2019-11-30 06:18:53
问题 How to clear console in sublime text editor. I have searched on internet too..But can't find proper shortcut for that. Please provide info 回答1: I assume you're talking about the console accessible via View -> Show Console or Ctrl ` . Unlike other answers on SO, which deal with clearing the Python console when opened from the command prompt, os.system("cls") or os.system("clear") (depending on your OS) don't work with the Sublime console. The Sublime API (version 2 or version 3) does not have

C# shortcut or shorthand getter setter

▼魔方 西西 提交于 2019-11-30 05:40:45
Is there a short way to create the getter and setter in c#? public string fname {get; set;} Is there short hand to generate {get; set;} ? yea type prop and press TAB. Visual Studio has a snippet for automatic property. For property with public get and private set, you can use propg and press TAB. For complete non auto property you can use propfull and press TAB. If you just want the getter and setter, as orignally asked for, you could also create a custom snippet: <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title