中国DOS联盟论坛

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-10-24 03:18
47,815 topics / 349,928 posts / today 1 new / 48,287 members
DOS批处理 & 脚本技术(批处理室) » How to automatically close the command line window
Printable Version  16,880 / 40
Floor31 fastslz Posted 2006-07-21 16:11
铂金会员 Posts 2,315 Credits 5,493 From 上海
Originally posted by zxcv at 2006-7-21 15:46:

But only a part of those that are correctly installed and registered in the registry will work. I tried normal installations, and AutoCAD works.


Yes, most of the installed software can be started, especially those from foreign or large software companies. Simply list a few common ones:
start realplay
start ACDSee7
start mplayerc
start winrar
start kav
start QuickTimePlayer
start nero
start uedit32
start Office series....
start Microsoft all components....
Chat tools like QQ don't work

[ Last edited by fastslz on 2006-7-21 at 16:12 ]
Floor32 zh159 Posted 2006-07-21 16:30
金牌会员 Posts 1,467 Credits 3,687
The key point is: It needs to be installed in the normal installation method and then registered in the registry.
Floor33 yanzhong Posted 2006-09-04 06:52
新手上路 Posts 7 Credits 18
Floor34 xuantian Posted 2006-09-04 07:30
高级用户 Posts 282 Credits 587
Use shortcuts ^.^
Floor35 HUNRYBECKY Posted 2006-12-29 10:05
银牌会员 Posts 442 Credits 1,179
Originally posted by namejm at 2006-7-21 15:33:
  "Can we ignore the path for installed software"? Fastslz, are you kidding? Anyway, I put the bat file on the desktop and then start to install a program in another partition, and it never succeeded...



Moderator namejm, in fact, start can indeed ignore many paths, and can also start a certain directory, such as
start system32 will directly open the system32 directory of WINDOWS.

Regarding the paths that START can ignore, they can be set in the registry. All commands that can ignore paths in the registry are stored in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths. You can even directly use BAT to add programs that need to ignore paths. For example, I add a program MSACCESS.EXE that can start ACCESS 2000 RUNTIME. In order to avoid conflict with the original MSACESS.EXE program, I change it so that you can enter START ACCESS2K.EXE in the command to start the application

Floor36 scriptor Posted 2006-12-29 11:59
银牌会员 Posts 555 Credits 1,187

@echo off
cd "Path of the program to run"
start /min Name
exit


For example:
Path is d:\program files\
Name is wmplayer.exe

Remember to add double quotes


[ Last edited by scriptor on 2006-12-28 at 11:21 PM ]
Floor37 hxuan999 Posted 2006-12-29 12:31
中级用户 Posts 161 Credits 337
Using %PATH% to find files is indeed good. Hehe, you can also use this way to find the execution file's path.



In PH, you can use ; to separate multiple paths like PATH.
Floor38 hxuan999 Posted 2006-12-29 12:37
中级用户 Posts 161 Credits 337
Also, I just thought of two questions that no one answered, so I'll answer them, heh.
1, Why can using START automatically close the CMD window.
2, Why must use start "Title of AcroRd32.exe" "D:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" to execute.

The first is because, if it's an internal CMD command or a batch file, by default it runs with CMD /K, and /K means run the program and keep the window.
The second is because, the path in quotes is recognized as the title string, so there's no path, and thus an error occurs. If you write it as,

then it will prompt you that file AA is not found.

[ Last edited by hxuan999 on 2006-12-29 at 07:53 PM ]
Floor39 hxuan999 Posted 2006-12-31 07:25
中级用户 Posts 161 Credits 337
Floor40 szww Posted 2007-03-23 05:51
初级用户 Posts 28 Credits 59
There are too many people in the alliance! It's not that I'm stupid!
Floor41 SunRiseBoy Posted 2007-06-29 02:43
初级用户 Posts 20 Credits 38
Start classic issues, all have encountered.
Prev  1 2 3
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023