Using Command-Line Flags to Run MapInfo EasyLoader

You can run MapInfo EasyLoader from the Windows command-line to apply specific upload parameters or invoke MapInfo EasyLoader with upload parameters from a custom script or application.

To open MapInfo EasyLoader from the Command-Line window, on the Windows Start menu type cmd. Change directories (cd) into the folder that has the MapInfoEasyLoader.exe file in it, and then type MapInfoEasyLoader.exe. MapInfo EasyLoader opens on your screen and is ready to use.

To upload a table when you open MapInfo EasyLoader from the Command-Line window, modify the following example. It uploads a table (/T) called states.tab and gives it the server table name mystates, grants all rights (/G) to make mystates public, and specifies that per-row styles are being loaded with the data (/Y).

MapInfoEasyLoader.exe /T C:\data\states usa.tab;mystates /G /Y

If a path contains spaces, use quotation marks around it, for example:

MapInfoEasyLoader.exe /T "C:\data\states usa.tab;mystates" /G /Y
MapInfoEasyLoader.exe /g /P R /s "DRIVER={PostGreSQL UNICODE(x64)};DATABASE=QADB;Server=MiProPostGIS;UID=pro;PWD=pro;Port=5432"

For a list of available command-line flags, see Command-Line Flags Descriptions.

For instructions on how to locate the MapInfo EasyLoader state file, which stores command-line flag settings for the session, see Locating the MapInfo EasyLoader Command-Line Flags RSP File.