reg import RegFile.reg
How to check return code of this command ?
The exit status of the last command should be stored in the ERRORLEVEL variable. Run this after running your reg command:
reg
echo %ERRORLEVEL%