VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Converting long file names

VB Pro  (6 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name.
This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:

Rate Converting long file names (40(40 Vote))
Converting long file names.bas

Converting long file names Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters