Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 working folders?

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
I have a word document... whenever i checkout the word document, modify it and check it back in i also want this document to be seen from another directory (not in sourcesafe)

so in other words.... everytime the document is checked in, i want to 'Get Latest Version' to another directory (automatically).

Is this possible?
 
Try using the Shadow Directory option, following from VSS Help:

A shadow folder is a centralized folder on your network server that contains all the files in a project. Shadow folders must be set up by your VSS administrator.

A shadow folder does not contain the master copy of the files (the master copy of every file is in the VSS database), and it does not contain the local copy of the files in your working folder. It contains a copy of the most recently checked-in version of each file in the project. Therefore, it serves as a centralized area to view and compile your source code.

A shadow folder is completely optional. It is generally used in one of two situations:

To allow users to view but not modify files. There may be users who want to see the files, but who do not have access to VSS.


To prevent your working folder from keeping its own compilable copy of the project. To make sure that every user has the most recent version of files, it may be desirable for all users to compile source code out of a centralized folder, instead of in personal working folders. In this case, shadow folders are frequently used in conjunction with the Remove local copy after Add or Check In option on the Local Files tab in the Options dialog box on the Tools menu.
Important Shadowed folders do not track changes to their subprojects. For example, if you have shadowed project $/A that contains two subprojects $/A/1 and $/A/2, and you rename $/A/2 to $/A/B, the name change is not shadowed. Project level changes need to be tracked manually, or you can use Reconcile All from the Project Difference dialog box occasionally to update the shadow folder. You can also repair a shadow folder with out-of-date files by performing a Get to the shadow folder.
Hope this helps,
Jessica
[ponytails2]
 
I have code that I downloaded from Microsoft's Web site that allows you to instigate events depending on what the user if doing, e.g. before check in/out, after check in/out etc.

If you want I can e-mail you a copy of this. It should do the job. Just give me an e-mail address and I will forward the VB Code and instructions on how to use it.


Hammy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top