windows-vista

Automatic confirmation of deletion in powershell

回眸只為那壹抹淺笑 提交于 2019-12-03 01:04:27
I'm running the following command: get-childitem C:\temp\ -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname} Which prompts me very frequently like this: Confirm The item at C:\temp\f\a\d has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): How can I have it automatically set to "A"? Try using the -Force parameter on Remove-Item . The default is: no prompt. You can enable it with -Confirm

What are the main differences between programming for Windows XP and for Vista?

廉价感情. 提交于 2019-12-02 23:37:52
From a desktop application developer point of view, is there any difference between developing for Windows XP and developing for Windows Vista? User Interface Looking at the Windows Vista User Experience Guidelines you can see that they have changed many UI elements, which you should be aware of. Some major things to take note of: Larger icons New font (Which affects some custom UI constistency) New dialog box features ( task dialogs ) Altered common dialogs (like File Open, Save As, etc.) Dialog text style and tone , and look and feel New Aero Wizards Redesigned toolbars Better notification

How do you configure Firefox to allow Javascript to intercept a value pasted from the clipboard?

狂风中的少年 提交于 2019-12-02 23:14:46
I need to filter out certain characters when a user pastes from the clipboard. (I don't actually want to modify what's in the clipboard.) I already have this working in IE. Sigh ... tl;dr: capability.policy items in user.js make it into prefs.js but aren't taking effect. FYI, I can reasonably have all users install user.js . But none of us have admin access to our machines, so that's about all I can do regarding configuration. Thanks for any help! Note: For the purposes of this question, I do not want to "get around" accessing the clipboard -- E.g., I do not want to operate on the value of the

Ant + Vista 64 : “Unable to locate tools.jar” (jre/jdk conflict?)

£可爱£侵袭症+ 提交于 2019-12-02 22:46:58
I'm trying to use ant in a vista 64 environment to build some docbook/xml files. However, I can't resolve this error message. Anybody have suggestions? C:\Users\Robert Admin>ant Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar Buildfile: build.xml does not exist! Build failed Googling around, I see that this tools.jar message is the result of ant not being able to find the jdk. In fact, C:\Program Files\Java\jre6\li b\tools.jar is a JRE installed with another program (I'm guessing). Tools.jar is located here: C:\Program Files\Java\jdk1.6.0_22\lib I

Windows XP vs Vista: NTFS Junction points

*爱你&永不变心* 提交于 2019-12-02 21:36:43
Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don't work when I plug that drive into a Vista box. Questions: Does anyone have a script that will force NTFS junctions created on XP to work correctly within BOTH Vista and XP? Is there documentation or a spec that explains what MSFT did to cause this breakage?

Reason for ~100x slowdown with heap memory functions using HEAP_NO_SERIALIZE on Windows Vista and Windows 7

本小妞迷上赌 提交于 2019-12-02 20:49:00
I'm trying to tracedown a huge slowdown in the heap memory functions in Windows Vista and Windows 7 (I didn't test on any server editions). It doesn't happen on Windows XP at all, only on Microsoft's newer operating systems. I originally ran into this problem with PHP complied on Windows. The scripts themselves seemed to run at the expected speed, but after script execution I was experiencing 1-2 seconds of delay in the internal PHP shutdown functions. After firing up the debugging I saw that it had to do with the PHP memory manager's use of HeapAlloc / HeapFree / HeapReAlloc . I traced it

How to detect if a Windows version is legal or not? [closed]

好久不见. 提交于 2019-12-02 20:20:07
I'm not interested in getting version information. All I want to do is to make sure my application will only run on a legal version of Windows and not on a pirated version. Windows uses some trick to determine this but still allows pirated versions to continue to run, although with some limits. So, is there a way to check if the application is installed on a legal, genuine Windows version? (Vista and better, at least.) Let me clear something up: Microsoft isn't preventing users to use a non-validated or illegal version of their operating system. Thus I don't have any reasons to block my

Installing Exuberant Ctags on Windows (Vista and XP)

匆匆过客 提交于 2019-12-02 18:02:24
I want to use Exuberant Ctags on Vista (and probably the XP laptop) at work; no choice about the OS. I'm use GVim instead of the Flex Builder recommended by my co-worker, because the FB is buggy and doesn't do what GVim does, anyway. I got the zip file here . The Ctags install file says, among other things: mk_bc3.mak For MSDOS using Borland C/C++ 3.x mk_bc5.mak For Win32 using Borland C++ 5.5 mk_djg.mak For MSDOS using DJGPP Gnu GCC (better to follow Unix install) mk_ming.mak For Win32 using Mingw32 mk_mvc.mak For Win32 using Microsoft Visual C++ I don't really understand what all that means

What is the difference between the new TFileOpenDialog and the old TOpenDialog?

a 夏天 提交于 2019-12-02 17:01:14
What is the difference between the new TFileOpenDialog and the old TOpenDialog? In my computer (Win 7/DXE), when I run the code, the dialogs look the same. TOpenDialog wraps the traditional GetOpenFileName . It works on all versions of Windows. TFileOpenDialog wraps the new COM based dialog that was introduced in Vista. It therefore only works on Vista or later. It has more functionality than the older dialogs, most notably the tight integration with search. Vista common dialog Compatibility common dialog The GetOpenFileName API will in fact produce the new dialogs in most situations, if

How would I find the cygwin version which has been installed on my machine

让人想犯罪 __ 提交于 2019-12-02 16:58:36
Cygwin - How would I find the Cygwin's version which has been installed on my machine? (Win Vista) With the uname utility, as on other POSIX systems. uname -r Bing If you want to detect if you're running the 32 bit or 64 bit version, the -m switch will tell you: uname -m "i686" for the 32-bit version, "x86_64" if it's 64-bit. uname -a ..gives you all the information at once. Check man uname for details. (This is also answered in How do I tell whether my cygwin installation is 32 or 64 bit? ) 来源: https://stackoverflow.com/questions/4506287/how-would-i-find-the-cygwin-version-which-has-been