windows-7

Visual FoxPro driver for 64 bit Windows 7

余生颓废 提交于 2019-12-05 17:29:54
问题 I've installed Visual FoxPro driver from this link on my 64 Bit Windows 7 Home Premium OS and tried to register vfpoledb.dll using REGSVR32. I could able to register this dll but when run my application which accesses VFP database is throwing the following error: System.InvalidOperationException: The 'VFPOLEDB.1' provider is not registered on the local machine. The same application is working fine in 32 bit Windows 7 Home Premium OS without any issues. I have googled for 64 bit VFP driver and

Is UAC on Win7 different than Vista?

两盒软妹~` 提交于 2019-12-05 17:25:44
[EDITED to avoid duplications] I posted this question and in trying to diagnose what is going on have become curious about the magic UAC that happens in the OS. (especially since it seems different on the two platforms. Can anyone confirm or refute this? Our unmanaged c++ program causes the "Do you want to allow the following program to make changes to this computer?" to pop up at program start - even before it gets to our winmain. It appears that there is some kind of test done by the PE loader/launcher/whatever before our app code runs that decides for itself if it should ask for elevation.

How to make sure touch events are enabled in Firefox desk top browser?

送分小仙女□ 提交于 2019-12-05 17:23:52
问题 I used a simple test on a windows 7 desktop with touch capabilities. For simplicity it was something like this: temp_div.addEventListener('touchstart', function(e){ /*confirm */ }, false) temp_div.addEventListener('pointerdown', function(e){ /*confirm */ }, false) temp_div.addEventListener('mousedown', function(e){ /*confirm */ }, false) In chrome, the 'touchstart' was confirmed. In IE, the 'pointerdown' was confirmed. In Firefox, the 'mousedown' was confirmed. After troubleshooting, I

How do I start ipython's qtconsole cleanly on Win7

北战南征 提交于 2019-12-05 16:56:19
I have python 3.4 and ipython 2.3.1 installed on Windows 7. I installed ipython using pip from a wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/ (Thanks, Chris!). This install procedure does not create any start menu shortcuts, even when run as administrator. I can successfully run "ipython qtconsole" from a cmd window, but then I have to have that command window open and the process doesn't fork--it's just and extra window hosting the child process. If I create a shortcut to do the same, it opens a cmd window which then opens the qtconsole. So, how do I start qtconsole without having an

Prevent Windows 7 Shutdown

百般思念 提交于 2019-12-05 15:10:27
I know that shutdown -a will abort a Windows shutdown, but I need to know if there is anything any where I can check for to see if a shutdown is in progress. Ideally, I'd like a small program like this: import os while True: shuttingDown = <shutdown variable to check> if shuttingDown: os.system("shutdown.exe -a") For preventing a Windows shutdown when it is happening, you can react to the WM_QUERYENDSESSION message (don't know if you can do that easily with Python's win32 API but it's simple in C). This might not prevent applications from closing because Windows sends WM_ENDSESSION to those

How can I programmatically find a users HKEY_USERS registry key using powershell?

时间秒杀一切 提交于 2019-12-05 14:50:13
问题 I wonder if there is a way to find a local user's registry key in HKEY_USERS if you know the login-name of that user on the local machine. I want to programmatically add stuff to a specific user's registry keys (Autorun for example), but I only know the username. How can I determine which of the cryptic users in HKEY_USERS actually belongs to a specific username? 回答1: $User = New-Object System.Security.Principal.NTAccount($env:UserName) $sid = $User.Translate([System.Security.Principal

Microsoft Sans Serif Font not used in Chinese Localized Windows

…衆ロ難τιáo~ 提交于 2019-12-05 14:49:05
Scenario: A UI Interface element appears to use a different font on US English Windows 7 Enterprise compared to "Chinese" Windows 7 Enterprise even with all localization packs and languages set to English. In the WinForms codebehind, the FontFamily is not explicitly defined and relies on the defaults. English: Chinese: Several questions: 1) What is the font used in the Chinese Windows? 2) What is different about such an install that would cause it to use that font? 3) How do I set up an environment to replicate this? Is it an install time option on Windows 7 that one does not get when

How to execute large MySql data-insert script file using command line in Windows 7?

一世执手 提交于 2019-12-05 14:42:48
I'm new to MySQL so please guide me through how to do this via command line; I've tried but I get NO logging in the console output and the character set is not utf-8 Please help. Kerrek SB Since your SQL script doesn't contain any character set configuration directives, mysql just runs in its default character set Latin1. To change the default character set, start mysql like this: mysql -e "source /path-to-backup/backup-file.sql" db_name --default-character-set=UTF8 mysql -e "source /path-to-backup/backup-file.sql" db_name or mysql db_name < backup-file.sql You probably need -u username -p ,

The system cannot find the path specified

若如初见. 提交于 2019-12-05 14:33:10
I am trying to calculate sha1 hash for some of the files from location %system%\drivers\ using C#. I know files are at the exact location but when i use FILE.Exists("c:\\Windows\\System32\\Drivers\\1394ohci.sys") it always retuns false. C:\Users\administrator>dir c:\Windows\System32\drivers\1394ohci.sys Volume in drive C has no label. Volume Serial Number is 5A4F-1E60 Directory of c:\Windows\System32\drivers 11/21/2010 08:53 AM 229,888 1394ohci.sys 1 File(s) 229,888 bytes 0 Dir(s) 19,521,245,184 bytes free C:\Users\administrator>fciv -sha1 c:\Windows\system32\drivers\1394ohci.sys // // File

Getting XCOPY to concatenate (append)

↘锁芯ラ 提交于 2019-12-05 14:10:52
It it actually possible to get XCOPY to append, as per http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format). ? Neither wildcards or file1+file2+file3 format works for me. Workaround (sometimes): Use COPY instead. If I get it right, you want to merge files into one. For text files I would use: FOR /R %%f in (file*) DO TYPE %%f >> bigfile 来源: https://stackoverflow.com/questions/25548431/getting-xcopy-to