def cygwinpath_to_winpath
    return self unless match(%r{/cygdrive/})
    drive = scan(%r{/cygdrive/(\w)/}).first.first.upcase
    dir_file = scan(%r{/cygdrive/\w/(.*)}).first.first.gsub('/', '\\')
    "#{drive}:\\#{dir_file}"