VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Convert Long File Location And Name To Short

CovertLoop  (12 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code enables you to convert a long file location and filename to a short file location and filename. Example: C:\Program Files\Test.txt
will become C:\Progra~1\Test.txt

API Declarations
ADD TO A MODULE
Declare Function GetShortPathName Lib "kernel32" Alias _
"GetShortPathNameA" (ByVal lpszLongPath As String, ByVal _
lpszShortPath As String, ByVal cchBuffer As Long) As Long

Rate Convert Long File Location And Name To Short (5(5 Vote))
Convert Long File Location And Name To Short.bas

Convert Long File Location And Name To Short Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters