windows-7

gvim on windows 7 - vimrun.exe doesn't run command

谁说我不能喝 提交于 2019-12-08 08:50:49
问题 On a new windows 7 build vim commands don't actually run, but gvim echo's the command attempted to run. in vim the command :!dir opens a vimrun.exe terminal and shows the following: C:\WINDOWS\system32\cmd.exe --login -c "dir" Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\USERNAME> The window sits like this, until i type exit and return control back to vim. C:\Users\USERNAME>exit Hit any key to close this window... How can i have

List MS Windows tasks

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 08:39:26
问题 Is there a "built-in" way to list all MS Windows tasks currently running? I've googled a bit and found a workaround via shell("tasklist") , but I don't really like the structure of the resulting R object as its pretty "captured-output-only" like (i.e. the resulting object is a character vector containing things like line numbers etc.) and I would have to fire some regular expressions at it to turn it into something like a data frame or the like: value <- shell("tasklist", intern=TRUE) > value

Mute system from code

跟風遠走 提交于 2019-12-08 08:16:12
问题 I'm trying to mute the PC speaker from my C# console application. I've tried the code suggested on this site and it doesn't affect the volume on my machine. I need the code to work on Win7 and I assume that code only works on XP. I also tried this: [DllImport("winmm.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)] public static extern int waveOutSetVolume(IntPtr uDeviceID, int dwVolume); waveOutSetVolume(IntPtr.Zero, 0); But when the waveOutSetVolume method is called,

WPF Application Hang

纵饮孤独 提交于 2019-12-08 08:04:29
问题 I'm using Windows 7 Professional (x64) and having installed .NET 4.0 RTM on my machine. Since 2 days I'm noticing that every WPF application that I'm trying to run hangs and becomes non responsive (a not responding text is appended to it's title bar) and it's painted white. There is no info regarding any exception, no error message. Nothing. Even the Event Log shows that there was "application hang" event (code 1002) and nothing more. This problem is for everything that is written in WPF,

Windows 7 Batch: Find /i

随声附和 提交于 2019-12-08 07:58:01
问题 I have a windows batch file in Windows 7 which does something with find. it starts with this: find /i /c.... But it says something like find /i is no medium or so. Then it just gives a list of every single file in the C:\ directory. Is there any new replacement for Windows 7? EDIT: If i hit find /? in cmd, it gives find: /? there is no such file or directory 回答1: You probably have the posix find command installed on your computer. Type: where find.exe To locate it. You probably can change the

.NET WPF Process.Start() not working on Vista and Windows 7

两盒软妹~` 提交于 2019-12-08 07:55:12
问题 I have WPF application. After testing my app on Windows7 and realized that opening help does not work. Basically to open chm help file I call: Process.Start("help.chm"); And nothing happens. I have also tried my app on Vista SP1, same result. I'm admin in both OS'es I have googled this problem, but have not found solution to it. Is there way to solve this problem? Have you experienced this types of incompatibilities. Thank You! 回答1: have you tried ShellExecute ? using System.Runtime

Batch file executing a sound silently

两盒软妹~` 提交于 2019-12-08 07:36:04
问题 Would it be possible to execute a mp3 silently from batch I have tried: @echo off 1.mp3 pause It works but it doest do it silently it launches WMP. does any one know how I could accomplish this. I am making a program and the track it one of the sound effects. 回答1: Here is a Bat/VBS to play an audio file : @echo off set file=track12.mp3 ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo

PowerBuilder 10.5 Application on Windows XP 32-bit to Windows 7 64-bit

对着背影说爱祢 提交于 2019-12-08 07:24:45
问题 I currently have a 32-bit PowerBuilder application that we are trying to port over to a Windows 7 64-bit environment. Realizing the obvious that PowerBuilder 10.5 was built previously before Window7 came out and the big also the obvious fact that this application was built within a Windows XP 32-bit environment. The 32-bit PowerBuilder application spits out the following error message when deployed on a Windows 7 64-bit machine. Application Terminated. Error: Invalid DataWindow row/column

Getting WM_TOUCH messages from every window and processing in my APP

a 夏天 提交于 2019-12-08 07:16:22
问题 I am developing touchscreen application. The goal of the application is when the end user is going to make vertical touch movement (a vertical line with his finger)on the screen on touchscreen device with Windows7 all of the active windows need to minimize (something like show desktop). My question is how can i process all the WM_TOUCH messages that happen everywhere in every window that is active on the desktop. There is no windows hook with which i can take all the WM_TOUCH messages. I

Batch run script when closed

﹥>﹥吖頭↗ 提交于 2019-12-08 06:56:26
问题 My question is how would I make a batch script instead of closing when the X in the top right is pressed to execute a file called exit.exe. 回答1: the [X] is "out of reach" for cmd . Only way, I can think of is: create another cmd to watch the presence of the current window: @echo off title WatchMe more +7 %~f0 >t2.bat start "watcher" t2.bat exit /b @echo off :running tasklist /v|find "WatchMe" >nul &&echo waiting || goto finished timeout 1 >nul goto running :finished echo "the process has