Visual Basic Forum

Visual Basic Forum
für VB6 und VB.NET Programmierer
 
RegistrierenRegistrieren  LoginLogin

Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Source Codes
Autor
Nachricht
ZiG
Überflieger
Überflieger

Anmeldedatum: 16.04.2008
Beiträge: 421

GetShortPathname (Pfad in altes Dos 8.3 Format umwandeln)
Verfasst am: 18.06.2009, 11:03

Name: GetShortPathname
Funktion: Wandelt einen normalen String/Pfad in das alte Dos 8.3 Format um.
Rückgabe: Ein String. (Verkürzter Pfad)


Visual Basic: [code]Private Declare Function GetShortPathname Lib "kernel32" Alias "GetShortPathNameA" (ByVal strLongPath As String, ByVal strShortPath As String, ByVal intBufferLen As Integer) As Integer

Public Function GetShortname(ByVal LongPathName As String) As String
Dim strShortName As String, iLen As Integer

iLen = GetShortPathname(LongPathName, strShortName, 0)
strShortName = Space(iLen - 1)
Call GetShortPathname(LongPathName, strShortName, iLen)
GetShortname = strShortName

End Function[/code]
_________________
 
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Source Codes

Tags: getshortpathname, dos, pfad

 
 Verwandte Themen   Aufrufe   Letzter Beitrag 
Keine neuen Beiträge Problem mit always on top funktion 1039 30.10.2009, 11:26
Keine neuen Beiträge IntStr()funktion 1177 11.10.2007, 08:49
Keine neuen Beiträge TopMost Funktion unter DirectX 921 27.07.2007, 10:48
Keine neuen Beiträge Wie Funktion nutzen ? 1102 29.06.2007, 20:59
Keine neuen Beiträge update funktion einbauen 1341 28.01.2007, 23:11
 



[ Time: 0.1364s ][ Queries: 81 (0.0242s) ][ GZIP on - Debug on ]