;
帖子
3919 
精华
积分
11710 
鱼币
0 ¥ 
来自
大连 
在线时间
1858 小时 
注册时间
2007-6-11 
最后登录
2009-10-20 

贴图大师勋章新人进步勋章宣传大使勋章论坛元老勋章

3
发表于 2009-1-5 19:48 | 只看该作者
鍙栧緱File 8.3涔嬫枃浠跺悕绉版牸寮 - 缂栫▼搴 - Powered by SupeSite

浣犵殑浣嶇疆锛缂栫▼搴 >> 璧勮 >> VB >> 鏂囦欢鎿嶄綔 >> 璇︾粏鍐呭 鍦ㄧ嚎鎶曠ǹ

鍙栧緱File 8.3涔嬫枃浠跺悕绉版牸寮

鍙戝竷: 2008-6-26 09:30 |  浣滆: admin |   鏌ョ湅: 6娆

Private Declare Function GetShortPathName Lib "kernel32" Alias

"GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As

String, ByVal cchBuffer As Long) As Long

Private Declare Function GetFullPathName Lib "kernel32" _

Alias "GetFullPathNameA" (ByVal lpFileName As String, _

ByVal nBufferLength As Long, ByVal lpBuffer As String, _

lpFilePart As Byte) As Long

Private Sub Command1_Click()

Dim aa As Long, pbase As Long

Dim FullPath As String, ShortPath As String

Dim SouStr As String

Dim len5 As Long

Dim fname() As Byte

Dim gg As String

SouStr = "C:vb5.exe"

ShortPath = String(255, 0)

aa = GetShortPathName(SouStr, ShortPath, 256)

SouStr = Left(ShortPath, InStr(1, ShortPath, Chr(0)) - 1)

Debug.Print SouStr

End Sub

鎵撳嵃 | 鏀惰棌姝ら〉 |  鎺ㄨ崘缁欏ソ鍙 | 涓炬姤
涓婁竴绡 涓嬩竴绡
 

璇勫垎锛0

鍙戣〃璇勮
鏌ョ湅鍏ㄩ儴鍥炲銆愬凡鏈0浣嶇綉鍙嬪彂琛ㄤ簡鐪嬫硶銆