This method of the Path Class determines whether the path string ends in .exe, .com, .bat, .pif, or .cmd.
public static boolean hasExecExtensionType(String stPath);
Returns true if the path string ends in .exe, .com, .bat, .pif, or .cmd; otherwise, returns false.
stPath | The path string. |