Archive for the ‘Windows 7’ Category
Posted by jpluimers on 2014/04/20
I’m glad that junction did work to create a directory junction to link a directory from one NTFS file system to another with this small batch file (that falls back from mklink to junction):
@echo off
:start
if !%1!==!! goto :help
goto :main
:help
echo %0 TargetFolder
echo Creates directory symbolic link using MKLINK or JUNCTION so that TargetFolder points to %~dp0
goto :eof
:main
:: http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/
call :do mklink /D %1 %~dp0
call :do junction %1 %~dp0
goto :eof
:do
echo %*
%*
goto :eof
Some more reading on juncions, hard links, symbolic links, etc:
Read the rest of this entry »
Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: Junction Points, NTFS file system, symbolic links | Leave a Comment »
Posted by jpluimers on 2014/04/16

A while ago, I was working with a not so cooperative corporate firewall. All web browsers would work fine, but most other applications would not go through the proxy in a nice way.
For instance, DropBox would show the dreadfull “Connection Error” dialog shown on the right.
That dialog basically means “Dropbox has no clue what happens, try fiddling with your proxy or account settings, then press Reconnect Now” to retry.
Many other applications had issues (for instance Visual Studio connecting to Team Foundation System was very unreliable and the workarounds clumsy).
CNTLM: not the solution
I got inspired by the [WayBack] I code and code: Tutorial: How to use Dropbox behind a corporate proxy server using CNTLM, even though I was pretty sure the corporate firewall was not NTLM based.
And indeed, CNTLM -v -M http://google.com -c CNTLM.INI would give errors like this:
cntlm: Proxy returning invalid challenge!
headers_send: fd 4 warning -999 (connection closed)
Connection closed
HTTP Fiddler: looks promising
So I fired up my old buddy [WayBack] Fiddler 2 HTTP debugging proxy.
Further on, you will learn that Fiddler2 is much more, but right now it is enough to know that it basically sits as a local proxy between your applications and the outside world. Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, base64, Cntlm, Development, DropBox, Encoding, Fiddler, JavaScript/ECMAScript, NTLM, Power User, Scripting, SocialMedia, Software Development, Web Development, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP, Windows-Http-Proxy | Leave a Comment »
Posted by jpluimers on 2014/04/11
This Explorer extension is brilliant: Path Copy Copy – Home.
It works in Windows XP and up (including 7, 8 .x, 20xx Server, etc).
The Open Source is done in Visual Studio with C++.
–jeroen
Read the rest of this entry »
Posted in C++, Development, Power User, Software Development, Visual Studio 2010, Visual Studio and tools, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/04/10
Not only for Windows 7 SP1, as it works on newer Windows versions too:
The article lists many steps, but these are the ones you don’t want to miss:
- Start the Disk Cleanup wizard by running ‘CleanMgr‘ as Administrator
- Make sure you press the “Cleanup system files” button:
this will restart CleanMgr as administrator and include obsolete Windows Update files in the scan.
Both scanning and cleaning can take quite a while, and you often have to reboot afterwards.
You automate parts of the non-administrator process, but the automation task does not support the “Cleanup system files” option. Normally I’d rather see what it wants to cleanup, so I have not used this automation way yet..
–jeroen
via: Disk Cleanup Wizard addon lets users delete outdated Windows updates on Windows 7 SP1.
Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2 | Leave a Comment »
Posted by jpluimers on 2014/04/08
Based on Updating Windows Defender signatures (only) » twm’s blog (thanks Thomas!), I found it would not work on all my Windows systems.
So I wrote a small batch file that works on my Windows 8.x, 7 and XP systems: Read the rest of this entry »
Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/04/02
Wow, I totally missed the introduction of SETX.
From TechNet:
SETX:
Creates or modifies environment variables in the user or system environment, without requiring programming or scripting. The Setx command also retrieves the values of registry keys and writes them to text files.
Even better, is that it allows you take values from these sources so it is easy to get those into environment variables:
- Command-line parameter
- Registry key
- Text file (with some filtering/search options)
From a bit of searching around, I think it got introduced in a Windows Resource Kit, and got included by default starting Windows Vista.
Excellent addition to my toolset (:
–jeroen
via Setx.
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Vista | Leave a Comment »
Posted by jpluimers on 2014/03/30
Read this very nice post on Nex7’s Blog: ECC vs non-ECC RAM: The Great Debate.
There is no debate. Use ECC dude.
Use ECC especially for server side things (storage, virtualization, databases, etc) where you employ some kind of redundancy/correction in the storage (ZFS, RAID, etc) side of things.
And think about using ECC for the rest of your stuff, especially when things stay in memory for a longer period of time (in-memory processing of data can speed up things a lot, but also increase the risk).
Summary:
There is no debate here. None.
[…]
if you think non-ECC RAM can compete with ECC RAM, you are mistaken. If you think there’s a risk/reward analysis here, you’re correct. The risk is not gigantic, and there’s a real cost to alleviating that risk. You have to decide if that cost is worth alleviating that risk.
[…]
If you believe there’s a risk/reward plan where you can take the reward and apply to to mitigate the risk, you are back to being mistaken. The only benefit of non-ECC RAM (and thus the only reward in its choice over ECC RAM) is it will make the solution cheaper. There is not, however, any way (that I’ve heard of, yet) you can use the cost savings to mitigate the risk using non-ECC RAM will introduce.
[…]
If you choose to use non-ECC RAM, you open yourself up to a new vector for data corruption/loss/downtime/errors/etc,
one that could (rarely) even cause you to lose your entire filesystem, and one ZFS does not (cannot) resolve for you. Indeed, one it likely can’t even see at all. If you choose to employ non-ECC RAM, or are forced to do so because of circumstance or environmental constraint, that’s potentially understandable (and even acceptable) – but do not then attempt to validate or explain away that choice with pseudoscience or downplaying the risk you’ve added. You are using an inferior solution with an extra vector for data corruption/loss that ECC RAM solutions simply do not have. It is that simple.
[…]
Hint 3: There’s a reason we’re so gung-ho about using ECC RAM for ZFS, and it’s not just because we’re paranoid about data loss (which goes hand in hand with being a ZFS zealot, really). It is because you likely don’t realize how at risk you are. Due to the nature of how ZFS handles writes, your incoming (write) data is at risk of RAM-related bit errors for likely significantly longer than traditional storage solutions or alternative filesystems. 5, 10, 30, 60 or more seconds in a state where it is at risk.
Read the rest of this entry »
Posted in *nix, ECC memory, Endian, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Hardware, Hyper-V, Linux, Memory, Power User, SuSE Linux, VMware, VMware ESXi, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2 | Tagged: ECC RAM, ZFS | Leave a Comment »
Posted by jpluimers on 2014/03/29
The upside of findstr is that it is included with Windows since a long time (at least since Windows XP, later: indeed since Windows ME) and supports a form of regex.
But often it drives you crazy.
When it does, read What are the undocumented features and limitations of the Windows FINDSTR command? – Stack Overflow.
–jeroen
Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows ME, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/03/29
Brilliant piece of open source:
SmallestDotNet – SmallestDotNet.com is a single page site that does one thing. It tells you the smallest, easiest download you’d need to get the .NET Framework on your system.
Even on Mac OS X it is helpful and recommends Mono and on iOS it recommends looking at MonoTouch.
Thanks Scott Hanselman for making this available!
–jeroen
via:
Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, Apple, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: .NET Framework, scott hanselman | Leave a Comment »
Posted by jpluimers on 2014/03/27
Every once in a while, the local synchronization of offline files mismatches the actual files.
Time for a CSC reset.
Note: you need to be Local Administrator on the machin in order to reset the CSC cache.
Use Reg.exe
You can also automate the process of setting this registry value by using the Reg.exe command line editor. To do this, type the following command in the Reg.exe window:
REG.EXE. REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache" /v FormatDatabase /t REG_DWORD /d 1 /f
–jeroen
via: How to re-initialize the offline files cache and database.
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8 | 2 Comments »