标题:好久没来了,送大家点东西
取消只看楼主
fown
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:58
帖 子:1229
专家分:171
注 册:2005-5-26
结帖率:0
 问题点数:0 回复次数:0 
好久没来了,送大家点东西

为VFP程序创建快捷方式


调用方法

=SetShortCut('木子安臣')


自定义函数PRG文件如下


Function SetShortCut
Parameters MyProcName
wshshell = Createobject("Wscript.shell")
StrDesktop = wshshell.specialfolders("Desktop")
oMyShortcut = wshshell.createshortcut(strdesktop + "\&MyProcName..lnk")
oMyShortcut.windowstyle = 4
oMyShortcut.iconlocation = "&ExePath.木子安臣.EXE"
oMyShortcut.targetpath = "&ExePath.木子安臣.EXE"
oMyShortcut.workingdirectory = ExePath
oMyShortcut.Save
Release wshshell
Endfunc

搜索更多相关主题的帖子: Desktop 
2006-06-11 09:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-71329-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018944 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved