Microsoft SDK for Java

hasExecExtensionType

This method of the Path Class determines whether the path string ends in .exe, .com, .bat, .pif, or .cmd.

Syntax

public static boolean hasExecExtensionType(String stPath);

Return Value

Returns true if the path string ends in .exe, .com, .bat, .pif, or .cmd; otherwise, returns false.

Parameters

stPath The path string.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.