|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
Set args = WScript.Arguments
linkname = args(0)
Set wshshell = CreateObject("WScript.Shell")
Set scut = wshshell.CreateShortcut(linkname)
Set fs = CreateObject("Scripting.FileSystemObject")
folder = fs.GetParentFolderName(scut.TargetPath)
If Left(folder,1) <> """" Then folder = """" & fs.GetParentFolderName(scut.TargetPath) & """"
wshshell.Run("explorer " & folder)
Set args = WScript.Arguments
linkname = args(0)
Set wshshell = CreateObject("WScript.Shell")
Set scut = wshshell.CreateShortcut(linkname)
Set fs = CreateObject("Scripting.FileSystemObject")
folder = fs.GetParentFolderName(scut.TargetPath)
If Left(folder,1) <> """" Then folder = """" & fs.GetParentFolderName(scut.TargetPath) & """"
wshshell.Run("explorer " & folder)
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2009-8-5 13:21 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下

还是这样,我想第4行出了问题吧,应该就在那里作判断有无双引号
这是我快捷方式的图
Last edited by kidzgy on 2009-8-6 at 08:27 ]

Still the same, I think there is a problem in the 4th line, it should be where to judge whether there are double quotes
This is the diagram of my shortcut
Last edited by kidzgy on 2009-8-6 at 08:27 ]
|
|
2009-8-5 21:25 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
|
2009-8-6 22:52 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
正常。。。
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2009-8-7 00:41 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
那就是没有办法解决了,那这个程序就只能对于没有双引号的路径使用?
Then there is no way to solve it. Then is this program only applicable to paths without double quotes?
|
|
2009-8-7 07:45 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
我这里有没有都正常运行。。
It runs normally whether I have it here or not.
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2009-8-7 08:06 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
那就太奇怪了,到底会是什么问题呢?有空我得到网吧试试
Then it's really strange. What on earth could be the problem? I need to go to an internet café to try it when I have time.
|
|
2009-8-7 08:15 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
我明白了。
我的迅雷快捷方式的类型跟网络连接里创建宽带连接的快捷方式的实质是一样的。
而我打包成ZIP,再解压的时候,就形成了主程序右键发送到桌面的快捷方式一样。
例如图,我用新建RAR,打开看桌面,只看到迅雷快捷方式lnk的图标,而宽带连接和另一个迅雷却看不到,这里也由此说明另一个迅雷和宽带连接的快捷方式的实质是一样的,但是不同于发送到桌面的快捷方式。因此才会产生这样的错误。
其实,就算双引号引着,也没有必要修改了,因为原来5楼修复好的,已经能够用了。
I understand.
The type of my Thunderbolt shortcut is essentially the same as the shortcut for creating a broadband connection in the network connection.
And when I package it into a ZIP and then extract it, it forms the same as the shortcut for sending the main program to the desktop by right-clicking.
For example, in the figure, I use the new RAR to open and look at the desktop, and only see the icon of the Thunderbolt shortcut lnk, while the broadband connection and another Thunderbolt are not visible. Here, it also shows that the essence of the other Thunderbolt and the broadband connection shortcut is the same, but different from the shortcut sent to the desktop. Therefore, such an error occurs.
In fact, even if it is enclosed in double quotes, there is no need to modify it, because the one fixed on the 5th floor originally can already be used.
|
|
2009-8-7 08:44 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
像弹出17楼的提示,是因为我对右键的不是以lnk为末尾文件名的快捷方式,而是系统注册表形成的另一种快捷方式。
Like the prompt that pops up on the 17th floor, it's because I'm dealing with a shortcut created by the system registry, not a shortcut with a filename ending in .lnk for the right-click.
|
|
2009-8-7 08:47 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
你看不到不是这个原因。。。是因为他们不在这个目录。。。
桌面是
all users 和 你自己的桌面显示在一起的……
你从常规属性应该能看到了
You can't see it not because of this reason... It's because they are not in this directory...
The desktop is that all users and your own desktop are displayed together...
You should be able to see it from the regular properties
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2009-8-7 12:42 |
|
|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
|
2009-8-7 22:16 |
|