When I run
gem install
command the gem
utility tries to access my home directory. It contains some non-latin char
It's simpler to write:
@ECHO OFF
SET HOMEPATH=
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
In this case you don't need to write your path and can replace or redistribute with file for new installations