Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
The advantages of to make technical solution of the present invention, is clearer, makees specifically to the present invention with reference to the accompanying drawings and examples
It is bright.
As shown in Figure 1, the startup method of application program provided in an embodiment of the present invention, including:
101, the disk where application program to be launched is subjected to shadow volume backup, generates shadow and rolls up backup object.
First, the store path of application program to be launched is obtained.Wherein, the store path carries the application to be launched
The drive of disk where program.The disk where the application program to be launched can be known according to the drive, to root
Backup services are rolled up according to the shadow in Windows operating system(Volume Shadow Copy Service)To carry out shadow to the disk
Volume backup generates shadow and rolls up backup object.
102, virtual backup disk is generated.
Wherein, the drive of each disk of computer where the drive of the virtual backup disk and the application program not phase
Together.Such as the drive of Most current computer is c:,d:,e:,f:, when being equipped with mobile hard disk, there may also be drives
g:,h:Deng, therefore, can be arranged virtual backup disk drive be z:,y:Deng, but it is not only limited to this.
103, the virtual backup disk is distributed into the shadow and rolls up backup object, determine the access of the shadow volume backup object
Path.
Wherein, the drive of the access path of the shadow volume backup object is the drive of the virtual backup disk.
After generating shadow volume backup object, shadow volume backup object is inaccessible by, it is therefore desirable to be rolled up the shadow and be backed up
Object is mounted on addressable drive.
104, repeatedly start the application program under the access path of the shadow volume backup object.
After disk where application program to be launched is carried out shadow volume backup, start application program on virtual backup disk,
The required code of the application program and data content etc. will not be buffered, therefore repeatedly start the application on virtual backup disk
Program is Cold Start.Can be specifically repeatedly to be started and closed application automatically after receiving application program launching order
The operation of program;Can also be only to carry out one-shot application program operation, then connecing after receiving application program launching order
After receiving closing application program order, carries out primary application program of closing and operate, to by constantly receiving application program launching
Order and closing application program order carry out the operation for repeatedly starting and closing application program, but are not only limited to this.
It is worth noting that the executive agent of the startup method of application program provided in an embodiment of the present invention is a kind of application
The starter of the starter of program, the application program can be run in computer, such as Windows operating system
Computer.
Disk where application program to be launched is carried out shadow by the startup method of application program provided in an embodiment of the present invention
Volume backup generates shadow and rolls up backup object, and generates virtual backup disk, and the virtual backup is distributed to shadow and rolls up backup object, really
The access path of the fixed shadow volume backup object, repeatedly starts the application program under the access path of the shadow volume backup object,
Because after the disk where application program to be launched is carried out shadow volume backup, start application program on virtual backup disk, it is described
Code and data content of application program etc. will not be buffered, and be cold to repeatedly start the application program on virtual backup disk
Start-up course.And in the prior art, to the cold start-up for carrying out that program is applied multiple times, then need to restart computer operation system repeatedly
System, the cold start-up that program is applied multiple times more waste time.As it can be seen that the present invention is without restarting computer operating system the case where
Under, the cold start-up that program is applied multiple times can be carried out, the time for the cold start-up that program is applied multiple times is saved, improves using journey
The collection efficiency of the data of sequence cold start-up.
A more specifically embodiment is set forth below, as shown in Fig. 2, the application program that further embodiment of this invention provides
Startup method, including:
201, the store path of application program to be launched is obtained.
Wherein, drive of the store path with the disk where the application program to be launched.
For example, application program to be launched is app.exe, store path D:\test\app.exe.
202, the disk where the application program to be launched is confirmed according to the store path.
The magnetic where it can be determined by the drive of the disk where the application program to be launched in the store path
Disk.For example, the store path of application program to be launched is D:Test app.exe, then the magnetic where the application program to be launched
Disk is the D disks of computer.
203, the disk where application program to be launched is subjected to shadow volume backup, generates shadow and rolls up backup object.
Backup services are specifically rolled up according to the shadow in Windows operating system(Volume Shadow Copy Service)
To carry out shadow volume backup to the disk, generates shadow and roll up backup object.It generally requires and first creates Volume Shadow Copy
Shadow under Service rolls up copy services backup component(IVssBackupComponents)Interface, then by this
IVssBackupComponents interfaces carry out shadow and roll up backup initialization, and the operations such as Status of Backups and snapshot generation are arranged,
Middle Status of Backups may include full backup, incremental backup, differential backup, log backups etc..Ultimately produce shadow volume backup object.
For example, the disk where application program to be launched is the D disks of computer, then need to carry out shadow volume backup for D disks,
In Windows operating system, entire disk will not be backed up, but carry out differentiation backup, data in backup disk
The part of change, so as to save backup space.Such as generation shadow volume backup object be Device
HarddiskVolumeShadowCopyN, it is currently inaccessible which rolls up backup object.
204, virtual backup disk is generated.
Wherein, the drive of each disk of computer where the drive of the virtual backup disk and the application program not phase
Together.Such as the drive of Most current computer is c:,d:,e:,f:, when being equipped with mobile hard disk, there may also be drives
g:,h:Deng, therefore, can be arranged virtual backup disk drive be z:,y:Deng, but it is not only limited to this.Such as generation is virtual
Back-up disk is Z disks.
205, the virtual backup disk is distributed into the shadow and rolls up backup object, determine the access of the shadow volume backup object
Path.
Wherein, the drive of the access path of the shadow volume backup object is the drive of the virtual backup disk.
After generating shadow volume backup object, shadow volume backup object is inaccessible by, it is therefore desirable to be rolled up the shadow and be backed up
Object is mounted on addressable drive.Such as by above-mentioned shadow volume backup object Device
HarddiskVolumeShadowCopyN is mounted on drive Z, is Z so as to form addressable path:\test\
app.exe。
206, application program launching order is received, the application program under the access path of the shadow volume backup object is started.
Specifically, the reception application program launching order can receive the application program to be activated unlatching, example
The icon of such as app.exe is double-clicked.
207, after starting the application program, the application program is closed.
Here in step 207, it after the completion of application program launching, can carry out that operation is automatically closed.
208, judge whether to also need to be again started up the application program under the access path of the shadow volume backup object.If sentencing
Break to also needing to continue to access the application program, thens follow the steps 209;Otherwise, if determine do not visit again it is described apply journey
Sequence thens follow the steps 210.
209, after closing the application program, the application journey that is again started up under the access path of the shadow volume backup object
Sequence.After step 209,207 are returned to step.
After disk where application program to be launched is carried out shadow volume backup, start application program on virtual backup disk,
The required code of the application program and data content etc. will not be buffered, therefore repeatedly start the application on virtual backup disk
Program is Cold Start.In application program launching, hard page fault can be triggered(Hard Page Fault).
210, the virtual backup disk is deleted.
Repeatedly starting application program, after the cold start-up of test application program, in order to avoid virtual backup disk is excessive
Occupying system resources can delete the virtual backup disk.It, can be according to above-mentioned step when subsequently needing to test other applications
Rapid 201 to 209 re-start, therefore the virtual backup disk is not necessarily to always present in system.
In addition, above-mentioned steps 207 can also be substituted by following steps 211, as shown in figure 3,
211, closing application program order is received, the application program is closed.
It is described receive closing application program order can be receive the application program closing mark be activated, such as
The app.exe is upon actuation, it is shown that the interface of the app shows closing mark, in the closing on the interface of the app
After mark is clicked, the app is closed.
Then after above-mentioned steps 208, also needs to continue to access the application program if determining, return to step
206;Otherwise, the application program is not visited again if determining, thens follow the steps 210.
It is worth noting that the executive agent of the startup method for the application program that further embodiment of this invention provides is a kind of
The starter of the starter of application program, the application program can be run in computer, such as Windows operations system
The computer of system.
In addition, in Windows operating system, application program after a cold start, the virtual address control block of system cache
(Virtual Address Control Block, VACB)The required code of the application program can be stored in array of indexes
And data content etc., and hence it is also possible to before the application program is again started up, described in the VACB array of indexes
The respective items such as the required code of application program and data content are removed.Thus when the application program is again started up, it cannot
Required code and data content are got from VACB array of indexes, therefore can still carry out the cold start-up of application program.
Further embodiment of this invention provide application program startup method, by the disk where application program to be launched into
The volume backup of row shadow, generates shadow and rolls up backup object, and generate virtual backup disk, and the virtual backup is distributed to shadow volume backup pair
As determining the access path of the shadow volume backup object, repeatedly starting the application under the access path of the shadow volume backup object
Program starts application program because after the disk where application program to be launched is carried out shadow volume backup on virtual backup disk,
Code and data content of the application program etc. will not be buffered, equal to repeatedly start the application program on virtual backup disk
For Cold Start.And in the prior art, to the cold start-up for carrying out that program is applied multiple times, then need to restart computer behaviour repeatedly
Make system, the cold start-up that program is applied multiple times more wastes time.As it can be seen that the present invention is without restarting computer operating system
In the case of, the cold start-up that program is applied multiple times can be carried out, the time for the cold start-up that program is applied multiple times is saved, improves and answer
With the collection efficiency of the data of program cold start-up.
Corresponding to the specific embodiment of the startup method of the application program described in above-mentioned Fig. 1, Fig. 2, Fig. 3, as shown in figure 4,
The starter of application program provided by the invention, including:
Shadow rolls up backup units 31, and for the disk where application program to be launched to be carried out shadow volume backup, it is standby to generate shadow volume
Part object.
Generation unit 32, for generating virtual backup disk.
The drive for the virtual backup disk that the generation unit 32 generates is each with computer where the application program
The drive of disk differs.
Determination unit 33, the virtual backup disk for generating the generation unit 32 distribute to the shadow volume backup
The shadow that unit 31 generates rolls up backup object, determines the access path of the shadow volume backup object.
Wherein, the drive of the access path of the shadow volume backup object is the drive of the virtual backup disk.
Start unit 34, the shadow for repeatedly starting the determination of the determination unit 33 roll up the access path of backup object
Under application program.
Specifically, as shown in figure 5, the start unit 34, including:
Starting module 341, for receiving application program launching order, under the access path for starting the shadow volume backup object
Application program.
Closedown module 342, for after starting the application program, closing the application program.
The starting module 341 is additionally operable to after closing the application program, is again started up the shadow volume backup object
Application program under access path.
Alternatively, as shown in figure 5, the start unit 34, including:
Starting module 341, for receiving application program launching order, under the access path for starting the shadow volume backup object
Application program.
Closedown module 342 closes the application program for receiving closing application program order.
Further, as shown in figure 5, the starter of the application program, further includes:
Deleting unit 35, for deleting the virtual backup disk.
The starter of application program provided in an embodiment of the present invention can be run in computer, such as Windows behaviour
Make the computer of system.
Disk where application program to be launched is carried out shadow by the starter of application program provided in an embodiment of the present invention
Volume backup generates shadow and rolls up backup object, and generates virtual backup disk, and the virtual backup is distributed to shadow and rolls up backup object, really
The access path of the fixed shadow volume backup object, repeatedly starts the application program under the access path of the shadow volume backup object,
Because after the disk where application program to be launched is carried out shadow volume backup, start application program on virtual backup disk, it is described
Code and data content of application program etc. will not be buffered, and be cold to repeatedly start the application program on virtual backup disk
Start-up course.And in the prior art, to the cold start-up for carrying out that program is applied multiple times, then need to restart computer operation system repeatedly
System, the cold start-up that program is applied multiple times more waste time.As it can be seen that the present invention is without restarting computer operating system the case where
Under, the cold start-up that program is applied multiple times can be carried out, the time for the cold start-up that program is applied multiple times is saved, improves using journey
The collection efficiency of the data of sequence cold start-up.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow
Help software that the mode of required common hardware is added to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases
Embodiment.Based on this understanding, the portion that technical scheme of the present invention substantially in other words contributes to the prior art
Dividing can be expressed in the form of software products, which is stored in the storage medium that can be read, and such as count
The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used so that a computer equipment(Can be personal computer,
Server or the network equipment etc.)Execute the method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.