fixed #6 Command prompt window pops out when scanning on Windows