|
hbby
中级用户
  
积分 220
发帖 99
注册 2005-8-16
状态 离线
|
『楼 主』:
[已解决]请教批处理创建带参数的快捷方式
使用 LLM 解释/回答一下
请问各位朋友,我想创建一个快捷方式,代码如下:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\连接.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments=""VPN admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
这个快捷方式可以成功创建。
但是我想修改参数:b.Arguments=""VPN admin 88888""中的VPN为"VPN 01",最后想在快捷方式中呈现为C:\Windows\System32\rasdial.exe "VPN 01" admin 88888,代码如下:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\连接.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments="""VPN 01" admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
以上参数多加个双引号创建不能成功,请朋友们指教下,如何修改参数可以增加双引号,谢谢!
Last edited by hbby on 2016-7-3 at 20:47 ]
Please provide the English translation of the above Chinese content according to the requirements. The original text in Chinese is as follows:
请问各位朋友,我想创建一个快捷方式,代码如下:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\连接.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments=""VPN admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
这个快捷方式可以成功创建。
但是我想修改参数:b.Arguments=""VPN admin 88888""中的VPN为"VPN 01",最后想在快捷方式中呈现为C:\Windows\System32\rasdial.exe "VPN 01" admin 88888,代码如下:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\连接.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments="""VPN 01" admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
以上参数多加个双引号创建不能成功,请朋友们指教下,如何修改参数可以增加双引号,谢谢!
Last edited by hbby on 2016-7-3 at 20:47 ]
The translated English text is:
Dear friends, I want to create a shortcut. The code is as follows:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\Connection.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments=""VPN admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
This shortcut can be successfully created.
But I want to modify the parameter: change VPN in b.Arguments=""VPN admin 88888"" to "VPN 01", and finally want it to appear in the shortcut as C:\Windows\System32\rasdial.exe "VPN 01" admin 88888. The code is as follows:
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\Connection.lnk""):b.TargetPath=""%windir%\System32\rasdial.exe"":b.Arguments="""VPN 01" admin 88888"":b.WorkingDirectory=""%windir%\System32"":b.Save:close")
The above parameter with an extra pair of quotes cannot be created successfully. Please friends give some advice on how to modify the parameter to add the quotes. Thank you!
Last edited by hbby on 2016-7-3 at 20:47 ]
|
|
2016-7-3 17:54 |
|
|
hbby
中级用户
  
积分 220
发帖 99
注册 2005-8-16
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
b.Arguments=""""""VPN 01"""" admin 88888""
b.Arguments="""VPN 01"" admin 88888"
|
|
2016-7-3 20:46 |
|
|
zzz19760225
超级版主
        
积分 3673
发帖 2020
注册 2016-2-1
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
2005年注册,都是十年老妖精了。
Registered in 2005, all are ten-year-old old farts.
|

1<词>,2,3/段\,4{节},5(章)。 |
|
2016-7-5 04:49 |
|
|
5872169
高级用户
   
积分 959
发帖 474
注册 2007-10-25
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
老妖精现在不知道都到哪去了,都不见了
The old goblin doesn't know where to go now, all gone
|
|
2017-7-21 17:42 |
|
|
5872169
高级用户
   
积分 959
发帖 474
注册 2007-10-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
我才是十年的老妖精,老朋友们都不见了
I'm a ten-year-old old monster, and all my old friends are gone
|
|
2017-7-21 17:44 |
|
|
zzz19760225
超级版主
        
积分 3673
发帖 2020
注册 2016-2-1
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
可能不是不见了,是人生丰富成为胖子了,昨天的风有时偶尔在梦里依旧那个吹啊
另外一个就是多年青年熬成老头干了,面对昨天,除了感慨,竟然不知道该说什么了,或潜意识的想避免些什么
我比较看中的是,今天具有人丰富经验和技术的那些论坛大佬,对一个当年的DOS源码分析和重新建设一个的想法,是否比当年会多一些内容
Maybe it's not that it's gone, but that life has become rich and one has become a fatty. The wind from yesterday still occasionally blows in dreams
The other is that after many years of youth, one has turned into an old man. Facing yesterday, except for emotion, one doesn't know what to say, or unconsciously wants to avoid something
What I care more about is whether those forum experts with rich experience and skills today have more content than back then regarding an idea of analyzing the original DOS code and rebuilding one
|

1<词>,2,3/段\,4{节},5(章)。 |
|
2017-7-21 19:27 |
|
|
zzz19760225
超级版主
        
积分 3673
发帖 2020
注册 2016-2-1
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
因为我想有个这样的DOS,虽然我是DOS小白
Because I want to have such a DOS, although I am a DOS newbie
|

1<词>,2,3/段\,4{节},5(章)。 |
|
2017-7-21 19:29 |
|
|
wiq
初级用户
 
积分 179
发帖 35
注册 2003-6-3
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
看看我是不是老妖精
Let me see. The user's input is "看看我是不是老妖精", which translates to "Let's see if I'm an old monster".
|
|
2017-9-21 09:58 |
|
|
wiq
初级用户
 
积分 179
发帖 35
注册 2003-6-3
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
14年的老妖精,不过批处理方面还是菜鸟,在这个论坛学到不少知识,运维工作省心多了。谢谢大家!
A 14-year-old old hand, but still a newbie in batch processing. Learned a lot of knowledge in this forum, and the operation and maintenance work is more worry-free. Thanks everyone!
|
|
2017-9-21 09:59 |
|
|
zzz19760225
超级版主
        
积分 3673
发帖 2020
注册 2016-2-1
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by wiq at 2017-9-21 09:58:
看看我是不是老妖精
2003年,密码怎么记得住的呢
Originally posted by wiq at 2017-9-21 09:58:
Am I an old monster
How could I remember the password in 2003
|

1<词>,2,3/段\,4{节},5(章)。 |
|
2017-9-21 13:24 |
|