[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Script to run "pcli SetArchiveLocation etc" for all files in a repository

Asked by Hecatonchires in PVCS, Windows Batch Scripting, VB Script

Tags: pvcs, pcli, vbscript, dos batch

Hi,

I need to run a command line for every file in a pvcs repository, including subdirectories.   We need to move our repository from v:\pvcs (a mapped drive) to \\server\pvcs as we need to access the repository from a windows service, and windows services can't access mapped drives   >_<

I need a dos batch/vbscript to process every file.  The help doc for the command I need to run is in the code box below
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
SetArchiveLocation command
Set the archive 
location for the 
specified entity
Use the SetArchiveLocation command to set the archive location 
for the specified project database, project, or versioned file. 
Typically, this location is on a networked file system, a location 
to which all authorized users have access. By default, when you 
create a project, the archive location is a directory beneath the 
project database location, but you can specify a different archive 
location using this command.
NOTE  This command is not functional for Version Manager 
5.3/6.0 project roots.
Privileges required Modify Project. For more information on privileges, see the PVCS 
Version Manager Administrators Guide.
Alias SAL
Exit codes 0 Successful command completion
-2 PCLI command not found
-3 A non-PCLI related error or a command-specific error
-6 An invalid argument was specified
-7 An argument for a flag that is not needed
-8 A missing argument for a flag
-9 Wrong type was specified for an options argument
For information about... See...
Listing versioned files ListVersionedFiles command on 
page 168
Reporting archive and 
revision information for 
versioned files
Vlog command on page 227PVCS Version Manager PCLI Users Guide and Reference
206 Chapter 3  PCLI Command Reference  
-10 The specified file name cannot be read
-11 A required argument is missing
-12 A security exception occurred
-13 An unknown problem
See the appendix, Exit Codes, on page 241 for more detailed 
definitions of the exit codes.
Syntax SetArchiveLocation [options] -aarchive_location [entity]
Where:
archive_location specifies the path to the archive directory. You 
can set the archive location of a project to either a relative path, 
for example, /prj1, or a full absolute path, for example, 
H:\Samples\archives\prj1. If you set the path to a relative path, 
the location will be appended to the parents computed archive 
location. The -a option is required.
entity specifies a project or versioned file for which you are 
setting the archive location. You need not specify an entity if you 
want to set the archive location for the current project or project 
database.
NOTE  The current project is set using either the -pp option (as 
described below) or the PCLI_PP variable. A project database is 
set by using either the -pr option (as described below) or the 
PCLI_PR variable.
Options
To substitute variables and use list files for additional options, see 
Command Options on page 26 for more information.
-a -aarchive_location
Specifies the path to the archive directory. You can set the 
archive location of a project to either a relative path, for SetArchiveLocation command 207
PVCS Version Manager PCLI Users Guide and Reference
example, /prj1, or a full absolute path, for example, 
H:\Samples\archives\prj1. If you set the path to a relative path, 
the location will be appended to the parents computed archive 
location. This is required.
-h Display help for the command. The action terminates after it 
processes the -h option even if you specify other options.
-id -iduser id[:user_password]
Specifies a user ID and/or password for project databases and 
projects that have an access control database enabled. It 
overrides the value of the PCLI_ID variable for a single command. 
If VLOGIN or LDAP is the login source, use -id to specify your 
user IDand password too, if a password is assigned to your user 
ID. If VLOGIN or LDAP is not the login source, your user ID is 
predetermined by your login source, but you must still use -id to 
enter your password, if you have one. For example, 
-id:PassWord.
-pp -ppproject_path
Specifies the current project or folder for which to set the 
archive location. This option overrides the value of the PCLI_PP 
variable for a single command execution. If no project is 
specified, the PCLI_PP variable is used. 
-pr -prproject_database
Specifies the project database for which to set an archive 
location. This option overrides the value of the PCLI_PR variable 
for a single command execution. A project database is required 
for this command. If no project database is specified, the PLCI_PR 
variable is used. If it is not defined, then an error message is 
displayed and the command is aborted.
Examples Example 1: The following example changes the archive location 
for the Checkers project to the specified directory. 
pcli setarchivelocation -prd:\producta -pp/checkers
-aH:\archives\producta\checkersPVCS Version Manager PCLI Users Guide and Reference
208 Chapter 3  PCLI Command Reference  
Example 2: The following example sets the archive location for a 
project database to a value specified in a variable named 
archivelocation:
pcli setarchivelocation -prd:\productb -a$archivelocation
[+][-]02/25/09 05:58 AM, ID: 23733571Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 06:04 AM, ID: 23733611Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 02:35 PM, ID: 23739393Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 03:25 PM, ID: 23739825Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 04:12 PM, ID: 23740163Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 09:00 PM, ID: 23741696Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PVCS, Windows Batch Scripting, VB Script
Tags: pvcs, pcli, vbscript, dos batch
Sign Up Now!
Solution Provided By: AmazingTech
Participating Experts: 1
Solution Grade: A
 
[+][-]02/25/09 10:25 PM, ID: 23742040Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625