Windows Path Operations API functions

Source: Internet
Author: User

Windows Path Operations API functions

Windows Path Operations API functions

Pathremoveargs
Removing parameters from a path

Pathremovebackslash
Remove the last backslash "\" of the Path

Pathaddbackslash
At the end of the path, add the backslash "\"

PathRemoveBlanks
Remove spaces before and after a path

Pathaddextension
Add extension after file path

PathRemoveExtension
Remove file path extension

Pathrenameextension
Change the file path name extension

Pathremovefilespec
Remove filename, get directory

Pathunquotespaces
Remove the leading and trailing spaces in the path

Pathquotespaces
Determine if there are spaces in the path, and if so, use "" quotation marks to enclose the entire path.

Pathappend
Append one path to the back of another path

Pathcombine
Merge two Paths

Pathskiproot
Remove a disk or UNC part from a path

Pathstrippath
Remove the directory portion of the path to get the file name

Pathstriptoroot
Remove the file portion of the path to get the root directory

Pathcompactpath
Generate path with length based on pixel values
As the original path: C:\path1\path2\sample.txt
Based on 120 pixel truncation: C:\pat...\sample.txt
According to the truncation after 25 pixels: \sample.txt

PathCompactPathEx
Generate path with length according to number of characters

Pathsetdlgitempath
To set the path data to a child control on a dialog box

Pathundecorate
Remove adornments from a path

Pathunexpandenvstrings
Replace part of the data in the path with the system environment variable format

Pathfindonpath
Find a path from the path

PathFindExtension
Find the extension of a path

PathFindFileName
Gets the file name of the path

Pathfindnextcomponent
Find matching paths

Pathfindsuffixarray
Finds if the given file name has a given suffix

Pathgetargs
Get path parameters

Pathgetchartype
Get path Character type

Pathgetdrivenumber
Return a drive ordinal based on a logical drive letter

PathRelativePathTo
Creates a path to a relative path to another path.

Pathresolve
Convert a relative or absolute path to a qualified path

Pathcanonicalize
Normalize the path. Organize a messy path into a canonical path format

Pathbuildroot
Creates a root path based on a given disk ordinal

CreateDirectory
Create a Directory

GetShortPathName
Convert a long path to a short path format of 8.3 format

Getlongpathname
Convert the short path format to a long path.

Pathgetshortpath
Convert long path to short path format (8.3 format)

Pathcreatefromurl
Convert URL path to MS-DOS format

Pathmakepretty
Convert all paths to lowercase to increase readability

Pathmakesystemfolder
Adding system properties to a path

Pathunmakesystemfolder
Removing system properties from a path

Pathmakeuniquename
Create a unified path format from a template

Pathprocesscommand
Generates an executable path, such as a parameter, that automatically uses the path "" to include

Pathcleanupspec
Remove illegal characters from the path

PathCommonPrefix
Compare and extract two prefixes with the same path

PathFileExists
Verify that the path exists

Pathmatchspec
Determine if the path matches the set extension

Pathisdirectory
Determine if the path is a valid directory

Pathisfilespec
Verify that the path is a file name (possibly a path)

Pathisexe
Verify that the path is an executable file
Note: not only. exe, but also. bat,. com,. SRC, etc.

Pathisroot
Whether the path is a root path

Pathisrelative
Determine if the path is a relative path

Pathiscontenttype
Detects if a file is a development type
For example:
Pathiscontenttype ("Hello.txt", "Text/plain") returns True
Pathiscontenttype ("Hello.txt", "Image/gif") returns false

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
Determines whether 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 System properties (properties can be set by itself)

Pathisunc
Whether the path is a UNC format (network path)

Pathisuncserver
Whether the path is a UNC server

PathIsUNCServerShare
Whether the 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.