Here you can find the source of isWinFileSystem()
static boolean isWinFileSystem()
//package com.java2s; import java.io.File; public class Main { private static final char SYSTEM_SEPARATOR = File.separatorChar; private static final char WINDOWS_SEPARATOR = '\\'; /**//from w w w. j ava 2 s . c o m * Determines if Windows file system is in use. * @return true if the system is Windows */ static boolean isWinFileSystem() { return SYSTEM_SEPARATOR == WINDOWS_SEPARATOR; } }