网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
09月04日漏签0天
vbs吧 关注:18,251贴子:104,526
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 7回复贴,共1页
<<返回vbs吧
>0< 加载中...

创建快捷方式的问题

  • 只看楼主
  • 收藏

  • 回复
  • 0OO00O00OO0
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
oLnk.TargetPath = "%windir%\system32\taskkill.exe /im wscript.exe /f"我这样写创建的快捷方式是无法运行的,应该怎么写啊?求助!


  • 708616
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
路径和参数分开写。。。。。


2025-09-04 03:18:24
广告
不感兴趣
开通SVIP免广告
  • lxy_lixiaoyan
  • 核心吧友
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
Set wshscript=CreateObject("WScript.Shell")path=wshscript.ExpandEnvironmentStrings("%windir%")
oLnk.TargetPath = path & "\system32\taskkill.exe /im wscript.exe /f"


  • lxy_lixiaoyan
  • 核心吧友
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
Set wshscript=CreateObject("WScript.Shell")
path=wshscript.ExpandEnvironmentStrings("%windir%")
oLnk.TargetPath = path & "\system32\taskkill.exe /im wscript.exe /f"


  • 0OO00O00OO0
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我得到的快捷方式目标为“C:\Windows\system32\taskkill.exe \im wscript.exe \f”(包含引号)。双击快捷方式,提示“Windows 正在查找f,……”


  • 0OO00O00OO0
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
是不是要把参数放在引号外面?怎么写啊?


  • 9菜牜馬矿
  • 铁杆吧友
    8
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
The CreateShortcut method returns either a WshShortcut object or a WshURLShortcut object. Simply calling the CreateShortcut method does not result in the creation of a shortcut. The shortcut object and changes you may have made to it are stored in memory until you save it to disk with the Save method. To create a shortcut, you must:
Create an instance of a WshShortcut object.
Initialize its properties.
Save it to disk with the Save method.
A common problem is putting arguments in the TargetPath property of the shortcut object, which doesn't work. All arguments to the shortcut must be put in the Arguments property.
_______________________________________________
Set ws = WScript.CreateObject("Wscript.Shell")
Set s=ws.CreateShortcut("C:\aaa.lnk")
s.TargetPath="cmd.exe"
s.Arguments="/k echo off"
s.save


  • 0OO00O00OO0
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
谢了。


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 7回复贴,共1页
<<返回vbs吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示