Click here to Skip to main content
15,867,568 members
Articles / Desktop Programming / MFC
Article

Get Latest Version Of Multiple Projects With One Click

Rate me:
Please Sign up or sign in to vote.
3.00/5 (9 votes)
31 Oct 20031 min read 42.9K   288   14   5
Get multiple projects with one click, using automation.

Sample Image - SourceSafeGet.jpg

Introduction

Sometimes it happens that you have to get multiple projects to release the last version of your COOL application... this is because you use lots of components, developed from lots of coders in your team and other teams in your company. So, to automate this task, I wrote this simple app that uses the automation feature of Microsoft Visual SourceSafe.

How it works

Simply open the application and select the srcsafe.ini file of your database. Be careful, your login information will be stored in the SourceSafeGet.ini file, so everyone could see it (your source safe PASSWORD, your source safe USERID). After login, you can browse the source safe projects and add the ones you want to download, in one click.

Notes

Please read carefully these notes:

The GET operation cannot be stopped. Pressing the STOP button, you can stop the NEXT project get.

File will be always be retrieved without overwriting your checked files and getting all subprojects recursively.

And again, remember that your login information will be stored in the SourceSafeGet.ini file, so everyone could see it (your source safe PASSWORD, your source safe USERID).

This application has educational purposes and shouldn't be used in production/development environment. Use this application at your own risk.

Finally...

This was a five-hours-development to fit my needs. Feel free to modify the source code as you need, maybe you could add some more get-options, operation progress, etc.

Thanx to all CodeProject people for articles about automation and SourceSafe object model.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Leonardo
Italy Italy
Hi Smile | :)
I was born in 1970 (Augusta - Italy).
I live in Taranto - Italy.
I work in Taranto - Italy.
I like computer science!!!
That's all!

Comments and Discussions

 
GeneralAutomation... Pin
HoyaSaxa934-Apr-07 10:30
HoyaSaxa934-Apr-07 10:30 
GeneralI'm missing something... Pin
Chris Meech3-Oct-03 6:49
Chris Meech3-Oct-03 6:49 
GeneralRe: I'm missing something... Pin
Massimiliano Conte3-Oct-03 6:56
Massimiliano Conte3-Oct-03 6:56 
I prefer select once projects i want to get (browsing and clicking on SS database), and after it click one button to get the latest version instead of write down any bat, copying projects names, slashes, etc, etc, etc. IMHO THIS is automate a task! but maybe i'm wrong :P
GeneralRe: I'm missing something... Pin
Massimiliano Conte3-Oct-03 7:26
Massimiliano Conte3-Oct-03 7:26 
Generalthis is cool Pin
Anonymous3-Oct-03 3:52
Anonymous3-Oct-03 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.