![]() |
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-10 02:50 |
47,811 topics / 349,897 posts / today 2 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » Adding “Send File to Desktop” (my first attempt) — experts, please help me improve it |
| Printable Version 990 / 6 |
| Floor1 zxh17173 | Posted 2008-10-13 21:53 |
| 初级用户 Posts 20 Credits 33 | |
| Floor2 HAT | Posted 2008-10-13 22:04 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Where did the program winrar.exe come from?
|
|
| Floor3 zxh17173 | Posted 2008-10-13 22:08 |
| 初级用户 Posts 20 Credits 33 | |
|
That's true too~
But if I want to use a desktop shortcut, then I have no choice but to do it this way~~ The URL method doesn't seem to work~ I don't know VB either~~ And besides, almost nobody nowadays doesn't know how to use WINRAR, so I don't think it's much of a problem. |
|
| Floor4 HAT | Posted 2008-10-13 22:18 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Even if WinRAR is installed, is there actually an executable file called winrar.exe? What is its absolute path? If you directly use start winrar.exe, it may not be called correctly, right?
|
|
| Floor5 tireless | Posted 2008-10-13 22:27 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
|
If WinRAR is the installed edition, there is generally this registry entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe This lets you run winrar.exe from the “Run” dialog box, but it can't be run from a batch file. [ Last edited by tireless on 2008-10-13 at 22:35 ] |
|
| Floor6 23112656 | Posted 2008-10-13 22:46 |
| 中级用户 Posts 99 Credits 220 | |
|
You can just copy winrar.exe directly into the system32 directory.
|
|
| Floor7 tireless | Posted 2008-10-13 22:52 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
|
%deskpath%面 can also easily cause problems. For example, my desktop path was redirected to g:\我的文档\桌面, so the deskpath variable obtained by your first command becomes g:\我的文?. It would be better to export the registry first and then operate on it.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |