windows-7

Im getting “dig is not recognized as an internal or external command” when I try to run a batch file from java

这一生的挚爱 提交于 2019-12-31 04:20:33
问题 import java.io.*; public class Main { public static void main(String[] args) throws IOException, StringIndexOutOfBoundsException { Runtime.getRuntime().exec("cmd /c start C:\\dig-files3\\query3.bat"); } } I'm trying to launch a batch file through a java program but I get a 'dig not recognized as an internal or external command ...' message in the cmd screen. However when I double click on the batch file in the window it runs fine. How can I fix this? Here is the batch file's content: SET /a

How can I create a local user profile for the anonymous user of an ASP.Net MVC application under IIS 7?

筅森魡賤 提交于 2019-12-31 02:09:11
问题 I've been experimenting with ASP.Net MVC, and have come across a problem that is probably not specifically MVC related. But I cannot get the authentication in the default MVC application (the one created by the wizard when you create a new MVC project) to work properly under IIS 7 on Windows 7. If I run under the Visual Studio environment, it works, but if I switch the settings to run under IIS instead, I get the following exception trying to submit the login or registration: Failed to

Error when importing cx_Oracle module [Python]

﹥>﹥吖頭↗ 提交于 2019-12-31 01:46:14
问题 I use Windows 7 64 bit and Oracle 10g. I have installed python-2.7.2.amd64 and cx_Oracle-5.1-10g.win-amd64-py2.7. When I importing cx_Oracle module I get this error: Traceback (most recent call last): File "C:\Osebno\test.py", line 1, in import cx_oracle ImportError: No module named cx_oracle Can someone please tell me what is wrong? 回答1: Have you tried import cx_Oracle (upper-case O ) instead of import cx_oracle ? 回答2: I had this same issue under Windows. I used Dependency Walker to open up

Windows 7 icon sizing problems

痞子三分冷 提交于 2019-12-31 00:58:30
问题 I'm trying to create an application icon. I took a bunch of created *.ico files (one for each size) and combined them into a single *.ico file. I can see them all fine. I have 16x16, 32x32, 48x48, 64x64, and 128x128 icons (all 32bit w/ transparency). However, when I build my app (a standard Windows Forms app written in C#) and look at the icon in Windows explorer, it looks fine at the first few sizes (up to 48x48 I think.. "Medium"), but if I use the "Large" or "Extra Large" display modes in

IE8 won't download a file with a custom mime/type with UAC enabled

梦想的初衷 提交于 2019-12-30 20:02:49
问题 I have a .net service running on the local machine (Windows 7 x64, IE8, .net 3.5, C#) that returns a file to the browser in response to a user action. Using firefox or chrome, the file is downloaded properly and our application is launched via a custom mime type and all is well. However, with IE8, I receive a dialog "unable to download file from . Unable to open this internet site. The requested site is either unavailable or cannot be found. Try again later". Using fiddler, I verified that IE

IE8 won't download a file with a custom mime/type with UAC enabled

放肆的年华 提交于 2019-12-30 20:01:28
问题 I have a .net service running on the local machine (Windows 7 x64, IE8, .net 3.5, C#) that returns a file to the browser in response to a user action. Using firefox or chrome, the file is downloaded properly and our application is launched via a custom mime type and all is well. However, with IE8, I receive a dialog "unable to download file from . Unable to open this internet site. The requested site is either unavailable or cannot be found. Try again later". Using fiddler, I verified that IE

How do I get Microsoft Script Debugger to work with 64-bit Windows 7?

£可爱£侵袭症+ 提交于 2019-12-30 18:35:22
问题 I'm trying to debug some VBScript and normally I'd install the ancient (but free) Microsoft Script Debugger which would work fine on 32-bit XP and 32-bit Windows 7. However after installing it on 64-bit Windows 7 neither //d or //x (or even both) actually invoke the debugger any more. The script will happily run as if I've never supplied the option - but that isn't very useful. Is there anything I can do to get it working? I only use it occasionally to scratch my own itches, so I cannot

How do I get Microsoft Script Debugger to work with 64-bit Windows 7?

早过忘川 提交于 2019-12-30 18:35:14
问题 I'm trying to debug some VBScript and normally I'd install the ancient (but free) Microsoft Script Debugger which would work fine on 32-bit XP and 32-bit Windows 7. However after installing it on 64-bit Windows 7 neither //d or //x (or even both) actually invoke the debugger any more. The script will happily run as if I've never supplied the option - but that isn't very useful. Is there anything I can do to get it working? I only use it occasionally to scratch my own itches, so I cannot

Media Foundation IMFSinkWriter::Finalize() method fails under Windows 7 when muxing H.264 frames into MP4

不问归期 提交于 2019-12-30 11:10:47
问题 I'm writing a tool in C# that muxes H.264 frames into MP4 files, and I'm using Media Foundation's media sink with sink writer to do this. Things work pretty well under Win8, but under Windows 7 the same code throws an exception, HResult: 0xC00D36E6 (MF_E_ATTRIBUTENOTFOUND), when invoking sink writer's Finalize method. As a result, the generated MP4 file is not properly closed, and is (of course) not playable. The mftrace log shows that the failure under Windows 7 occurs somewhere after (or

How to get SSID and RSSI for Win7 using C#

妖精的绣舞 提交于 2019-12-30 09:55:07
问题 I am very new to Win7 and WMI. Please advice me where to see for active access point from WiFi and how to get ssid/rssi for each access point. I have use: ManagementClass mc = new ManagementClass("root\\WMI", "MSNdis_80211_ServiceSetIdentifier", null); ManagementObjectSearcher searcher1 = new ManagementObjectSearcher(@"root\wmi","SELECT * FROM MSNdis_80211_BSSIList"); but I got 0 results. Is this class support Win7? Anybody can help? 回答1: I had a similar problem where I needed to get the SSID