Certainly. In Module1 I pasted:<br>
<br>
Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long<br>
<br>
Function LongToShort(LongFilename As String) As...
Perfect! That is exectly what I was looking for.<br>
<br>
I tested it with a drive list, a dir list and a file list box.<br>
<br>
Private Sub File1_Click()<br>
If Right$(Dir1, 1) = "\" Then<br>
Label1 = LongToShort(Dir1 & File1)<br>
Else<br>
Label1 = LongToShort(Dir1 &...
Does anyone know a good way to convert long file names into the corresponding MS-DOS file names?<br>
Using the Dir function in VB6. Thank you for any help.<br>
Nice people don't do that sort of thing without permission. For a list of things "nice" people don't do, look at<br>
<br>
<A HREF="http://soback.kornet21.net/~murexco/search3.htm" TARGET="_new">http://soback.kornet21.net/~murexco/search3.htm</A><br>
You guys are crazy but I appreciated all the advice. I ended up getting what I wanted by clicking on Computer in Device Manager and then clicking properties. It was a little late since Windows had already decided that it was going to do whatever it wanted to do, whenever it wanted to do it. At...
This is odd. I upgraded my second monitor, started the system and Windows told me it was installing new hardware. The sound card went back to IRQ 7, where it had been before. Thanks for the help but, I'm starting to think there is no help for Windows.<br>
Now if I could get rid of these pesk...
I tried that. Twice. Windows had the audacity to assign them to the same IRQ, inform me that the devices were conflicting and offer to help me resolve the conflict. The last go-around gave IRQ 1 to the keyboard and IRQ 3 to the printer. I can't even find an owner for IRQs 5 and 7 and Windows...
When I added a second monitor to my Win 98 system, Windows placed my sound card in conflict with my printer. I manually switched the printer to a free IRQ (5) and the printer worked fine. Now Windows won't auto-detect the sound card (originally IRQ 7) or accept the existance of new hardware...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.