Test Group. Use the VSS command line to obtain the latest version.

Source: Internet
Author: User

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

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.