新建一个文本文档,输入如下内容:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions]
[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin]
[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2]
"cygdrive prefix"="/cygdrive""cygdrive flags"=dword:00000022[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/]
"native"="e:/cygwin""flags"=dword:0000000a[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin]
"native"="e:/cygwin/bin""flags"=dword:0000000a[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib]
"native"="e:/cygwin/lib""flags"=dword:0000000a[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/tmp]
"native"="e:/cygwin/tmp""flags"=dword:0000000a[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options]
这里我的CYGWIN是安装在e:\cygwin下,应当根据实际情况来修改。
然后保存,关闭,将文件后缀名改为".reg",然后双击,会弹出一个框框,点击“是”,就ok了。