If you are developing on ms vs, it may be convenient to obtain the new version compilation in the integrated development environment on a daily basis. However, for the testing department, you need to obtain the latest version manually on a daily basis, it is really boring and easy to get tired of work. Sometimes it will deploy several sets of a system. Sometimes, after obtaining the system, the developer updates it and has to repeat it. It is really painful. Recently, the statistics system developed by the project team is divided into several versions. The test group has deployed several sets of different databases for testing. Every day, when the test Manager updates the version, I cannot help but manually open the VSS logon, find the module to be retrieved and overwrite the other modules.Program. So I found some materials yesterday afternoon, looked at other people's experience, and wrote a batch for the Testing Department (the testing department also needs to write programs ). Create a getlastversion101.bat,CodeAs follows:
Set Path = % PATH %; F: \ visual sourcesafe6d \ VSS \ Win32
Set ssdir =\\ PMO \ VSS
Set ssuser = user
Set sspwd = pwd
SS workfold $/21-Work Group business platform/bapportal/modules/stat d: \ party member and cadre statistics merging program \ bapportal \ modules \ stat
D:
Cd d: \ merge program for statistics of Party members and cadres \ bapportal \ modules \ stat
Ss cp $/21-Work Group business platform/bapportal/modules/STAT
SS get *-w-r-I-n
CD \
Pause
In fact, it is much easier to work with just a few lines of code. Create a task plan based on the project plan, and enjoy your life with ease by drinking coffee and reading the bug library every day. If you need to restart IIs before getting the code, see here.
1. Introduction
Li shuqiang lisq 20071123 gets the latest batch processing file
2. Use
Run getlastversion101.bat directly.
You can obtain the latest version of the stat module from VSS to D: \ party member and cadre statistics merging program \ bapportal \ modules \ stat
3. Expansion
Currently, only the latest version can be obtained.
If you need to update multiple sites, you can copy this file and modify the path information.
Can be used to schedule tasks to automatically call for daily build