What about %ETC%? Probably set to C:\MPTN\ETC and is the usual system etc where hosts, resolv and such live, rather then the ports etc.
If you're happy with the detach command, you can put it in startup.cmd, might need creating in the root of your boot drive. gets run at the end of boot and is usually a regular batch file though REXX also works I understand.