Windows Path Operations API functions

Source: Internet
Author: User

Spare, easy to find:

PathremoveargsRemoving parameters from a path
PathremovebackslashRemove the last backslash "\" of the Path
PathaddbackslashAt the end of the path, add the backslash "\"
PathRemoveBlanksRemove spaces before and after a path
PathaddextensionAdd extension after file path
PathRemoveExtensionRemove file path extension
PathrenameextensionChange the file path name extension
PathremovefilespecRemove filename, get directory
PathunquotespacesRemove the end and end quotes in the path
PathquotespacesDetermine if there are spaces in the path, and if so, use "" quotation marks to enclose the entire path.
PathappendAppend one path to the back of another path
PathcombineMerge two Paths
PathskiprootRemove a disk or UNC part from a path
PathstrippathRemove the directory portion of the path to get the file name
PathstriptorootRemove the file portion of the path to get the root directory
PathcompactpathGenerate path with length based on pixel values
PathCompactPathExGenerate path with length according to number of characters
PathsetdlgitempathTo set the path data to a child control on a dialog box
PathundecorateRemove adornments from a path

PathunexpandenvstringsReplace part of the data in the path with the system environment variable format

PathfindonpathFind a path from the path
PathFindExtensionFind the extension of a path
PathFindFileNameGets the file name of the path
PathfindnextcomponentFind matching paths
PathfindsuffixarrayFinds if the given file name has a given suffix

PathgetargsGet path parameters
PathgetchartypeGet path Character type
PathgetdrivenumberReturn a drive ordinal based on a logical drive letter

PathRelativePathToCreates a path to a relative path to another path.

PathresolveConvert a relative or absolute path to a qualified path
PathcanonicalizeNormalize the path. Organize a messy path into a canonical path format
PathbuildrootCreates a root path based on a given disk ordinal
CreateDirectoryCreate a Directory
GetShortPathNameConvert a long path to a short path format of 8.3 format
GetlongpathnameConvert the short path format to a long path.
PathgetshortpathConvert long path to short path format (8.3 format)
PathcreatefromurlConvert URL path to MS-DOS format
PathmakeprettyConvert all paths to lowercase to increase readability

PathmakesystemfolderAdding system properties to a path
PathunmakesystemfolderRemoving system properties from a path
PathmakeuniquenameCreate a unified path format from a template
PathprocesscommandGenerates an executable path, such as a parameter, that automatically uses the path "" to include
PathcleanupspecRemove illegal characters from the path
PathCommonPrefixCompare and extract two prefixes with the same path
PathFileExistsVerify that the path exists
PathmatchspecDetermine if the path matches the set extension
PathisdirectoryDetermine if the path is a valid directory
PathisfilespecVerify that the path is a file name (possibly a path)

PathisexeVerify that the path is an executable file
PathisrootWhether the path is a root path
PathisrelativeDetermine if the path is a relative path
PathiscontenttypeDetects if a file is a development type
Pathishtmlfile Determine if the path is an HTML file type--judging by the type of system registration
Pathislfnfilespec Determine if the path is a long path format
Pathisnetworkpath Determine if the path is a network path.
Pathisprefix Determines whether the path contains the specified prefix
Pathissameroot Determine if the path has the same root directory
Pathisslow Determine if the path is a highly deferred network connection
Pathissystemfolder Determine if the path has a system attribute (attributes can be set by itself)
whether the Pathisunc path is a UNC format (network path)
whether the Pathisuncserver path is a UNC server
Whether the PathIsUNCServerShare path is only a UNC shared path format
Pathisurl Whether the path is in HTTP format.
Pathyetanothermakeuniquename
Automatically creates a unique file name based on the file that already exists. For example, "New file" exists, and this function creates the file name "new file (2)"

Windows Path Operations API functions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.