ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/MCP/Trunk/MCP_UpgradeToUnstable.cmd
Revision: 496
Committed: Fri Dec 20 15:52:59 2013 UTC (12 years, 3 months ago) by nino.borges
File size: 1375 byte(s)
Log Message:
Moved the main mcp code to the trunk, for easier versioning.

File Contents

# Content
1 @ECHO OFF
2 for /f "tokens=4-6 delims=[. " %%i in ('ver') do set VERSION=%%i.%%j
3 IF "%VERSION%" == "Version.5" GOTO XPvariables
4 REM Windows 7 goes here
5 SET MCPprogram=c:\McDermott-Discovery
6 SET MCPdocs=%USERPROFILE%\Documents
7 SET MCPshortcuts=Win7
8
9 GOTO AfterVariables
10 :XPvariables
11 REM Windows XP goes here
12 SET MCPprogram=%ProgramFiles%
13 SET MCPdocs=%USERPROFILE%\My Documents
14 SET MCPshortcuts=XP
15
16 :AfterVariables
17
18 ECHO This will upgrade the following items to the unstable branch for testing only!
19 IF EXIST "\\bstads01\app\Manny\MCP\_Unstable\MCP_AddCase_UI" ECHO -AddCase
20 IF EXIST "\\bstads01\app\Manny\MCP\_Unstable\MCP_Case_Scan_UI" ECHO -CaseScan
21 IF EXIST "\\bstads01\app\Manny\MCP\_Unstable\MCP_CopyUp_Request_UI" ECHO -CopyUp_Request
22 IF EXIST "\\bstads01\app\Manny\MCP\_Unstable\MCP_ViewEdit_UI" ECHO -ViewEdit
23 ECHO.
24 \\bstads01\app\Manny\MCP\\req\choice "Do you want to continue?"
25 IF %ERRORLEVEL% == 2 EXIT /b
26
27 ECHO Updating MCP
28 IF EXIST "%MCPprogram%\MCP" GOTO SETTINGSOK
29 ECHO ERROR: You don't have a MCP installed, contact Manny Borges (x53968)
30 ECHO Install Failed with Errors
31 GOTO QUITEARLY
32 :SETTINGSOK
33
34 ECHO Copying MCP Files...
35 xcopy \\bstads01\app\Manny\MCP\_Unstable\* "%MCPprogram%\MCP\" /E /Q /C /Y
36
37 ECHO Finished Install
38 ECHO.
39 ECHO Remember to rerun the normal installer after you finish testing.
40 :QUITEARLY
41 PAUSE