社区
VB基础类
帖子详情
那位知道为什么我用 App.EXEName ,有时能正确得到长文件名,有时却只能得到DOS的8.3各式的文件名?先用20分,解决后再加分!
bgxy
2002-09-05 01:54:11
如题。
而且我用
Open MyFilePathName For Binary As #fileNum
写文件时,也是有时得到的是8.3格式的文件名,MyFilePathName是我想保存的文件的完整路径文件名。
...全文
77
3
打赏
收藏
那位知道为什么我用 App.EXEName ,有时能正确得到长文件名,有时却只能得到DOS的8.3各式的文件名?先用20分,解决后再加分!
如题。 而且我用 Open MyFilePathName For Binary As #fileNum 写文件时,也是有时得到的是8.3格式的文件名,MyFilePathName是我想保存的文件的完整路径文件名。
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
saucer
2002-09-05
打赏
举报
回复
you can always convert it into long file name using a function like
(from http://216.26.168.92/tips/tip511.html)
Public Function GetLongFileName(ByVal ShortFileName As String) As String
Dim intPos As Integer
Dim strLongFileName As String
Dim strDirName As String
'Format the filename for later processing
ShortFileName = ShortFileName & "\"
'Grab the position of the first real slash
intPos = InStr(4, ShortFileName, "\")
'Loop round all the directories and files
'in ShortFileName, grabbing the full names
'of everything within it.
While intPos
strDirName = Dir(Left(ShortFileName, intPos - 1), _
vbNormal + vbHidden + vbSystem + vbDirectory)
If strDirName = "" Then
GetLongFileName = ""
Exit Function
End If
strLongFileName = strLongFileName & "\" & strDirName
intPos = InStr(intPos + 1, ShortFileName, "\")
Wend
'Return the completed long file name
GetLongFileName = Left(ShortFileName, 2) & strLongFileName
End Function
wxyq
2002-09-05
打赏
举报
回复
用vb6+sp4 /sp5 就可以
================================================================
ok?
bgxy
2002-09-05
打赏
举报
回复
订正,用Open MyFilePathName For Binary As #fileNum保存时,完成后我到那个路径去看看,发现文件名不是长文件名,像[我的文~1.dat]一样
vb和
dos
批处理创建或生成快捷方式
https://www.cnblogs.com/gszhl/archive/
20
09/04/23/1441753.html vb和
dos
批处理创建或生成快捷方式 首先说我现在用的一种,最有效的也是最简单的,用
dos
、bat批处理和可执行文件完成,在DocManager目录下有DocManager.
exe
需要生成创建快捷方式,去微软官方下载SHORTCUT.
EXE
版本 4.0...
electron支持开机自启动(注册表写入)
参考文档: https://newsn.net/say/electron-auto-launch.html 方法来源于官方API: https://electronjs.org/docs/api/
app
#
app
setloginitemsettingssettings-macos-windows 这是官方的内容
app
.setLoginItemSettings(settings) macOS Wi...
k8s-Kubernetes--services(微服务)、ingress-nginx、canary
服务(Service) 将运行在一组 Pods 上的应用程序公开为网络服务的抽象方法。 使用 Kubernetes,你无需修改应用程序即可使用不熟悉的服务发现机制。 Kubernetes 为 Pod 提供自己的 IP 地址,并为一组 Pod 提供相同的 DNS 名, 并且可以在它们之间进行负载均衡。
QT 对外部程序操作(开启, 关闭 , 嵌套使用) QProcess() || CreateProcess()
QT 对外部程序操作1.开启2.退出3.镶嵌使用 1.开启 主要使用了QProcess QProcess *expStart; QString strExpPath = tr("D:\\
APP
\\TencentQQ\\Bin\\QQScLauncher.
exe
"); //腾讯qq // QString strExpPath = tr("calc.
exe
"); //计算器程序 expStart = new QProcess(this); //声明 实现 expStart->
通过Pdf预览Excel或者word或者Powerpoint (C#将Office转换为PDF)
下面代码是Excel转换为PDF using System; using System.Collections.Generic; using System.Linq; using System.Web; using ms = Microsoft.Office.Interop.Excel; public class Excel2Pdf { ...
VB基础类
7,788
社区成员
197,583
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章