![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-11 01:43 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » [Closed] Create a shortcut of the startup file in a software to the desktop |
| Printable Version 1,617 / 9 |
| Floor1 jjttefg | Posted 2008-12-07 09:00 |
| 新手上路 Posts 10 Credits 16 | |
|
A green software. Write a batch file and place it in the software file:
start 绿化.exe regedit /s xxx.reg start 程序.exe How to further shortcut the icon and name of this program to the desktop ───────────────── Moderation Records ───────────────── Performed by: HAT Operation: Added search keywords in the post title Explanation: The original title " Help write a batch file" is not conducive to forum search Punishment: Deducted 2 points Tip: It is recommended to read the following posts {1415}The Wisdom of Asking Questions {7326}Must-read for Forum Newcomers, Basic Code of Conduct for Everyone {22703}Please Don't Be an Impatient Person {32667}Those Who Can't Even Write a Clear Title, Wake Up {32825}This Board Severely Rectifies Poor Posts ───────────────── Moderation Records ───────────────── [ Last edited by HAT on 2008-12-11 at 19:35 ] |
|
| Floor2 scriptor | Posted 2008-12-07 11:22 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
@echo off
rem Enter the target folder, check for shortcuts and copy dir x:\mulu|find ".lnk"&© a.lnk "%userprofile%\desktop" Or the Chinese version "Desktop" dir x:\mulu|find ".lnk"&© abc.lnk "%userprofile%\desktop" |
|
| Floor3 newxso | Posted 2008-12-07 20:54 |
| 初级用户 Posts 101 Credits 73 From GZ | |
|
Batch processing:
VBScript: [ Last edited by newxso on 2008-12-9 at 21:02 ] |
|
| Floor4 yishanju | Posted 2008-12-08 17:44 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
Originally posted by newxso at 2008-12-7 20:54: Shouldn't the shortcut of the program be created like this? Have you ever used it yourself? |
|
| Floor5 moniuming | Posted 2008-12-08 19:16 |
| 银牌会员 Posts 574 Credits 1,335 From 广西 | |
Originally posted by yishanju at 2008-12-8 17:44: Take a look here? Four Methods to Create Shortcuts with Batch Processing |
|
| Floor6 5872169 | Posted 2008-12-09 17:16 |
| 高级用户 Posts 474 Credits 959 | |
|
To create a real shortcut, you need to use VBS
|
|
| Floor7 jjttefg | Posted 2008-12-11 17:53 |
| 新手上路 Posts 10 Credits 16 | |
|
A green software. Write a batch file and place it in the software files:
start 绿化.exe regedit /s xxx.reg start xxx.exe How to further shortcut the icon and name of this program to the desktop I didn't succeed with the above method, please give me some guidance |
|
| Floor8 jjttefg | Posted 2008-12-11 18:14 |
| 新手上路 Posts 10 Credits 16 | |
|
The shortcut was successful. But the shortcut program can't be launched.
|
|
| Floor9 tempuser | Posted 2008-12-11 18:46 |
| 高级用户 Posts 261 Credits 547 | |
Originally posted by jjttefg at 2008-12-11 18:14: Try this. I created a shortcut for notepad.exe. @echo off echo >>a.url echo URL=c:\windows\notepad.exe >>a.url rem echo URL=http://10.64.240.131 >>a.url echo IconIndex=20 >>a.url echo IconFile=C:\windows\system32\shell32.dll >>a.url |
|
| Floor10 jjttefg | Posted 2008-12-11 19:00 |
| 新手上路 Posts 10 Credits 16 | |
|
Thank you very much. It worked.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |