ERROR_JOIN_TO_SUBST - 140 (0x8C)

The system tried to join a drive to a directory on a substituted drive.

Updated: Feb 21, 2026

Technical Meaning

The error code ERROR_JOIN_TO_SUBST with the numeric value of 140 and hex code 0x8C indicates that the system attempted to join a drive to a directory on a substituted drive. This operation is not supported by the file system.

Error Details

When this error occurs, it typically means that an attempt was made to perform a JOIN operation (such as mounting or associating a drive letter) on a directory that resides on a substituted drive. Substituted drives are those that have been temporarily mounted using the subst command in Windows.

Usage Context

This error is relevant when dealing with file system operations involving drive substitution and join operations. It can be encountered during attempts to mount, unmount, or modify drive associations within the context of a substituted drive environment.

Developer Interpretation

Developers should interpret this error as indicating an unsupported operation in the current context. Specifically, it suggests that the JOIN operation cannot be performed on directories residing on substituted drives due to limitations imposed by the file system and underlying storage mechanisms.

Related Errors

  • ERROR_INVALID_FUNCTION (0x5): This error may occur if a function is called with an invalid parameter or in an unsupported context, which could lead to JOIN_TO_SUBST errors.
  • ERROR_NOT_SUPPORTED (0x80000001): Indicates that the operation requested is not supported by the system, aligning with the behavior described by JOIN_TO_SUBST.

FAQ

Q: What does the error code 140 (0x8C) mean?

A: The error code 140 (0x8C) signifies that an attempt was made to join a drive to a directory on a substituted drive, which is not supported by the file system.

Q: Can this error be resolved without changing the operation context?

A: No, the operation context must be adjusted to ensure that JOIN operations are performed on non-substituted drives or directories.

Summary

The ERROR_JOIN_TO_SUBST error code (140/0x8C) is specific to file system operations involving drive substitution and join operations. It indicates an unsupported operation, suggesting that the current context does not allow for such actions. Developers should ensure that their operations are performed in a compatible environment to avoid this error.