Let's take a look at that if a program starts with another program. A typical application is: Let the anti-virus software automatically run as the network connection is opened, and when the network is turned off, the anti-virus software automatically exits. Turn off the network connection at any time, there is also a provincial fee, which is from the benefits of attack. The implementation method is as follows:
Step 1 Determine the location of the phase program
By default, network connection software PPPOEWIN.EXE and Jiangmin anti-virus software kVxp.kxp (it is not .exe or .com, but can still run) at C: / Windows / System32 and C: / KV2004 . If you use a dial-up Internet, start it's Rasphone, located in C: / Windows / System32.
Step 2 Create a batch file
Assume that the batch file is named "MypppoE.bat", the following command line is included in the batch:
@echo off
Start C: / Windows / System32 / Pppoewin
Start C: /kv2004/kvxp.kxp
In the future, as long as the batch is run, the network connection program is turned on, and Jiangmin anti-virus software will automatically open.
note:
1kvxp.kxp must be plus the extension to run because it does not have the extension of the executable of DOS.
2 If you want kvxp.kxp to run with IE, only the second line of the above program is not line, because IExplore.exe is in the C: / Program Files / Internet Explorer directory, there is space in the path, and the batch execution is executed. I will not find an error that IEXPLORE.EXE is not found, and the batch changes can be modified to:
@echo off
Path% PATH%; C: / Program Files / Internet Explorer
Start ipplore.exe
Start C: /kv2004/kvxp.kxp
Morning Wind Tip: We can also let the internet connection with anti-virus software at the same time. Just create a batch file, you can include the following:
Start taskkill / f / Im kVxp. KXP
Start taskkill / f / im PPPoEwin. EXE