windows-7

Set affinity with start /AFFINITY command on Windows 7

自闭症网瘾萝莉.ら 提交于 2019-12-17 09:36:29
问题 I am using the start /AFFINITY [n] [.exe] command to start an executable with the specified affinity. I have a system with 8 processors (1,2,3,4,5,6,7,8). I'd like to set the process to use all of the odd processors (1,3,5,7). I cannot figure out how to do this and would like to know if it's possible using the start command. If not, is there an alternate command-line way of doing it? The help for the start command wasn't particularly useful: AFFINITY Specifies the processor affinity mask as a

How to install RVM on Windows 7

左心房为你撑大大i 提交于 2019-12-17 09:21:58
问题 How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it into cmd an error message comes up saying it was 'unexpected at this time'. What do I do to install RVM? 回答1: No RVM for you! From RVM’s FAQ: Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby

How to install RVM on Windows 7

巧了我就是萌 提交于 2019-12-17 09:21:14
问题 How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it into cmd an error message comes up saying it was 'unexpected at this time'. What do I do to install RVM? 回答1: No RVM for you! From RVM’s FAQ: Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby

Changing default startup directory for command prompt in Windows 7

孤街醉人 提交于 2019-12-17 08:12:11
问题 How do I change default startup directory for command prompt in Windows 7? I usually do the following to start command prompt from C:\ WIN-R (Run Prompt) cmd /K cd C:\ I want to do the following to start command prompt from C:\ WIN-R (Run Prompt) cmd 回答1: While adding a AutoRun entry to HKEY_CURRENT_USER\Software\Microsoft\Command Processor like Shinnok's answer is the way to go it can also really mess things up, you really should try to detect a simple cmd.exe startup vs a script/program

Changing default startup directory for command prompt in Windows 7

老子叫甜甜 提交于 2019-12-17 08:12:05
问题 How do I change default startup directory for command prompt in Windows 7? I usually do the following to start command prompt from C:\ WIN-R (Run Prompt) cmd /K cd C:\ I want to do the following to start command prompt from C:\ WIN-R (Run Prompt) cmd 回答1: While adding a AutoRun entry to HKEY_CURRENT_USER\Software\Microsoft\Command Processor like Shinnok's answer is the way to go it can also really mess things up, you really should try to detect a simple cmd.exe startup vs a script/program

Change pinned taskbar icon (windows 7)

柔情痞子 提交于 2019-12-17 07:13:20
问题 I wan't to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed. How can I set the taskbar icon for my app to an icon different from the one embedded within the exe ? Not tried, this solution may work but looks dirty. Edit : Our app is compiled once but depending on config file, features are enabled or not so it's a product or another. We do not want to compile one

Change pinned taskbar icon (windows 7)

我与影子孤独终老i 提交于 2019-12-17 07:12:51
问题 I wan't to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed. How can I set the taskbar icon for my app to an icon different from the one embedded within the exe ? Not tried, this solution may work but looks dirty. Edit : Our app is compiled once but depending on config file, features are enabled or not so it's a product or another. We do not want to compile one

How do I get a HTML5 Video to work using IE10

别等时光非礼了梦想. 提交于 2019-12-17 06:54:10
问题 I am hoping someone has an idea on what I can do to help me play HTML5 videos on my local intranet. My Web server= Windows Server 2008 R2 Standard 64bit IIS version= IIS7 Test User environment = Windows 7 Enterprise Video plays perfectly using 'Google Chrome' Video fails to play using 'IE10' My html code is as follows: <!DOCTYPE html> <html> <body> <video src="AccReadings.mp4" width="400" height="300" preload controls> </video> </body> </html> My test machine using IE10 does play HTML5Rocks

Global Keyboard Hook from windows service

微笑、不失礼 提交于 2019-12-17 06:51:24
问题 Is it possible to write a global Keyboard Hook from windows(xp and 7) service ? ( using SetWindowsHookEx didn't work from a system service ) 回答1: The documentation for SetWindowsHookEx says: or with all threads in the same desktop as the calling thread. So you need to be associated with the same desktop (and there will be multiple desktops even without considering terminal services: the normal desktop, the secure desktop (used for UAC and login) and the screen saver). Since services are not

log4net - Appenders not working in IIS7.5

99封情书 提交于 2019-12-17 06:44:04
问题 I am able to write to a log file using log4net and Cassini/IIS dev server, but when I use IIS7.5, I can't write out to a file. Initially, I got a security exception, so I added requirePermission="false" and the exception went away but no file was created. The trust level is full according to IISM. I can't get this working on my own machine, I'm wondering what's going to happen when I transfer to an ISP (discountASP). Here's the log4net setup: <configSections> <section name="log4net" type=