Emacs: Set HOME directory

set HOME=G:/Dropbox
C:\emacs-26.3-x86_64\bin\runemacs.exe --debug-init
#!/bin/bash

# Get absolute path of myemacs.sh
# hint from https://stackoverflow.com/a/1638397 2020-04-13
SCRIPTFULLFILENAME=$(readlink -f "$0")
# Absolute path 
SCRIPTPATHNAME=$(dirname "$SCRIPTFULLFILENAME")

# Start emacs
# hint from https://stackoverflow.com/a/21569451 2020-04-13
# env HOME=$SCRIPTPATHNAME emacs -q -l .emacs.d/init.el 
env HOME=$SCRIPTPATHNAME emacs