set ICON=%OSGEO4W_ROOT%\apps\grass\grass-7.0.1\gui\icons\grass_osgeo.ico
set ICON_CMD=%OSGEO4W_ROOT%\apps\grass\grass-7.0.1\gui\icons\grass_cmd.ico
set BATCH=%OSGEO4W_ROOT%\bin\grass70.bat
textreplace -std -t "%OSGEO4W_ROOT%"\bin\grass70.bat
textreplace -std -t "%OSGEO4W_ROOT%"\bin\grass70
textreplace -std -t "%OSGEO4W_ROOT%"\apps\grass\grass-7.0.1\etc\fontcap

mkdir "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.1" 
xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.1\GRASS 7.0.1 GUI.lnk"   "%BATCH%" "-gui" \ "Launch GRASS GIS 7.0.1 with wxGUI" 1 "%ICON%" 
xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.1\GRASS 7.0.1 Command Line.lnk"  "%BATCH%" "-text" \ "Launch GRASS GIS 7.0.1 in text mode" 1 "%ICON_CMD%" 

xxmklink "%ALLUSERSPROFILE%\Desktop\GRASS GIS 7.0.1.lnk" "%BATCH%"  "-gui" \ "Launch GRASS GIS 7.0.1 with wxGUI" 1 "%ICON%" 

del "%OSGEO4W_ROOT%"\bin\grass70.bat.tmpl
del "%OSGEO4W_ROOT%"\bin\grass70.tmpl
