Start a program using batch processing

Source: Internet
Author: User

Start QQ, Renren, fetion, and so on each boot.Program, Sometimes each program has more than one open (don't tell me to set it to boot, it will delay the time for the machine to start the program, much faster than opening it after it starts ), one by one is too troublesome, so I want to use batch processing to solve it.

The command to be used is"Start
", Is also relatively simple, for example, Open qq I can write in a file ending with". Bat:Start D:/Tencent/QQ/bin/qq.exe
If you want to open another one, just write it. For example:

Start D:/Tencent/QQ/bin/qq.exe
Start D:/Tencent/QQ/bin/qq.exe
Start D:/Tencent/QQ/bin/qq.exe
Start D:/Renren/xntalk.exe
Start D:/China Mobile/fetion/fetion.exe

I just want to open three QQ accounts, one Renren desktop, and one Feixin.

However, when fetion is enabled, the first problem is that its default directory"D:/China Mobile/fetion/fetion.exe
There is a space in it. Some people say they can add double quotation marks (that is,"Start "D:/China Mobile/fetion/fetion.exe"
"), But I tried it. It seems like the call command. So what should we do? You can do this as follows:Start "fetion" "D:/China Mobile/fetion/fetion.exe"

Of course, the first parameter"Fetion"
It can also be written""
It does not matter if you cannot afford an alias (the alias here is empty, but there are also some.

In addition, this can solve another problem, that is, automatically exit after the batch processing is completed.

Start D:/Tencent/QQ/bin/qq.exe
Exit

The command line window will not close after the above batch processing is executed, but the following will:

Start "QQ" D:/Tencent/QQ/bin/qq.exe
Exit

So after knowing this, I can write it like this:

Start "QQ" D:/Tencent/QQ/bin/qq.exe
Start "QQ" D:/Tencent/QQ/bin/qq.exe
Start "QQ" D:/Tencent/QQ/bin/qq.exe
Start "Renren" D:/Renren/xntalk.exe
Start "fetion" "D:/China Mobile/fetion/fetion.exe"
Exit

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.