VB取得DOS方式的路径地址
2008-09-20 18:44
281 查看
Visual Basic Code |
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" ( ByVal lpszLongPath As String, _ ByVal lpszShortPath As String, ByVal cchBuffer As Long ) As Long Private Sub Form_Load ( ) MsgBox GetDOSPath ( "C:/Documents And Settings/Administrator/桌面" ) End Sub Private Function GetDOSPath ( WinPath As String ) As String Dim DosPath As String Dim DosPathSize As Long DosPathSize = GetShortPathName ( WinPath, vbNullString, 0 ) DosPath = String ( DosPathSize, " " ) GetShortPathName WinPath, DosPath, DosPathSize GetDOSPath = DosPath End Function |
相关文章推荐
- VB中取各种系统路径名,格式化磁盘,建立快捷方式,鼠标的定位,移动
- vb.net 取得应用程序的启动路径
- JAVA-servelet 取得当前目录的路径/Servlet/class/文件路径/web路径/url地址
- JAVA 取得当前目录的路径/Servlet/class/文件路径/web路径/url地址
- 取得进程路径地址
- C#截取DOS命令输出流取得网卡MAC地址
- VB如何读取快捷方式的目标路径
- C#截取DOS命令输出流取得网卡MAC地址
- JAVA 取得当前目录的路径/Servlet/class/文件路径/web路径/url地址
- JAVA 取得当前目录的路径/Servlet/class/文件路径/web路径/url地址
- java各种取得路径方式总结
- 修改WAMPServer默认的网站路径地址的一种方式
- vb.net按英文表示方式取得系统时间
- C#截取DOS命令输出流取得网卡MAC地址
- vb.net 取得文件名、路径名、扩展名
- [DOS][BAT]批处理文件本身的路径取得方法
- sandbox沙盒介绍以及如何取得沙盒里面各文件的路径,图片导入方式和图片路径获取
- 如何取得IE的路径并且以最大化的方式启动?
- JAVA 取得当前目录的路径/Servlet/class/文件路径/web路径/url地址
- C#截取DOS命令输出流取得网卡MAC地址