diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,9 @@
+# Changelog for system-fileio
+
+## 0.3.16.4
+
+* Fix for Win32 2.6 and above [#21](https://github.com/fpco/haskell-filesystem/pull/21)
+
 ## 0.3.16.2
 
 * withHANDLE (Win32) now works on directories [#8](https://github.com/fpco/haskell-filesystem/issues/8) [#10](https://github.com/fpco/haskell-filesystem/pull/10)
diff --git a/lib/Filesystem.hs b/lib/Filesystem.hs
--- a/lib/Filesystem.hs
+++ b/lib/Filesystem.hs
@@ -170,7 +170,11 @@
 #ifdef CABAL_OS_WINDOWS
 	let old' = encodeString old in
 	let new' = encodeString new in
+#if MIN_VERSION_Win32(2,6,0)
+	Win32.moveFileEx old' (Just new') Win32.mOVEFILE_REPLACE_EXISTING
+#else
 	Win32.moveFileEx old' new' Win32.mOVEFILE_REPLACE_EXISTING
+#endif
 #else
 	withFilePath old $ \old' ->
 	withFilePath new $ \new' ->
diff --git a/system-fileio.cabal b/system-fileio.cabal
--- a/system-fileio.cabal
+++ b/system-fileio.cabal
@@ -1,5 +1,5 @@
 name: system-fileio
-version: 0.3.16.3
+version: 0.3.16.4
 license: MIT
 license-file: license.txt
 author: John Millikin <jmillikin@gmail.com>
