求大神把VB代码转换成Delphi代码
DimWshShell,QQQPathDimsAsStringDimiSetWshShell=CreateObject("WScript.Shell")OnErrorRe...
Dim WshShell, QQQPath
Dim s As String
Dim i
Set WshShell = CreateObject("WScript.Shell")
On Error Resume Next
QQQPath = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QQQ.exe\") ‘检测是否安装QQQ
If Err Then
MsgBox "您没有安装QQQ"
Else
i = InStrRev(QQQPath, "\") ’ 获得QQQ所在目录
GSCSPath = Left$(QQQPath, i - 1)
Shell "taskkill /f /im QQQ.exe", vbMinimizedNoFocus ‘结束QQQ.exe
Shell QQQPath & "\UninsHs.exe" ’运行卸载程序
Dim WehShell, a
Set WehShell = CreateObject("WScript.Shell")
aa = WehShell.SpecialFolders("Desktop")
Kill aa & "\QQQ.lnk" ‘删除桌面QQQ快捷方式
End If
==================================================================
==================================================================
或者大神帮写一段Delphi7代码,实现检测是否安装---结束进程---运行卸载程序---删除快捷方式,万分感激!!!!!好人又好报!明年发大财!!! 展开
Dim s As String
Dim i
Set WshShell = CreateObject("WScript.Shell")
On Error Resume Next
QQQPath = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QQQ.exe\") ‘检测是否安装QQQ
If Err Then
MsgBox "您没有安装QQQ"
Else
i = InStrRev(QQQPath, "\") ’ 获得QQQ所在目录
GSCSPath = Left$(QQQPath, i - 1)
Shell "taskkill /f /im QQQ.exe", vbMinimizedNoFocus ‘结束QQQ.exe
Shell QQQPath & "\UninsHs.exe" ’运行卸载程序
Dim WehShell, a
Set WehShell = CreateObject("WScript.Shell")
aa = WehShell.SpecialFolders("Desktop")
Kill aa & "\QQQ.lnk" ‘删除桌面QQQ快捷方式
End If
==================================================================
==================================================================
或者大神帮写一段Delphi7代码,实现检测是否安装---结束进程---运行卸载程序---删除快捷方式,万分感激!!!!!好人又好报!明年发大财!!! 展开
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询