Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Writing Windows Service to connect to Visual Source Safe and download the code

Writing Windows Service to connect to Visual Source Safe and download the code

Scheduled Pinned Locked Moved Design and Architecture
tutorialcsharpvisual-studiosysadminhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meeram395
    wrote on last edited by
    #1

    First of all, I am not sure whether this is the right forum to ask this question. If not, could you please help me in choosing the right forum. This may be a stupid idea, but I think it is better if I can develop this. I need some help to start this. We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time. Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config. If this is possible, please guide me how to start with this. Any articles or urls will be great. Thanks in advance, meeram395.

    Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

    L 1 Reply Last reply
    0
    • M meeram395

      First of all, I am not sure whether this is the right forum to ask this question. If not, could you please help me in choosing the right forum. This may be a stupid idea, but I think it is better if I can develop this. I need some help to start this. We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time. Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config. If this is possible, please guide me how to start with this. Any articles or urls will be great. Thanks in advance, meeram395.

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      meeram395 wrote:

      We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time.
       
      Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config.

      A Windows-service usually runs under a different context than the user; does it have access to SourceSafe? I'm using batch-files to achieve something similar. We've got Tortoise, and downloading the latest code from the repository can be done over the commandline;

      TortoiseProc.exe /command:update /path:"c:\stuff\code\" /closeonend:1

      When done, the batch-file proceeds to build and executes the unit-tests. Gets executed every day by the Windows Task Scheduler. SourceSafe supports the same[^].

      Bastard Programmer from Hell :suss:

      M 1 Reply Last reply
      0
      • L Lost User

        meeram395 wrote:

        We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time.
         
        Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config.

        A Windows-service usually runs under a different context than the user; does it have access to SourceSafe? I'm using batch-files to achieve something similar. We've got Tortoise, and downloading the latest code from the repository can be done over the commandline;

        TortoiseProc.exe /command:update /path:"c:\stuff\code\" /closeonend:1

        When done, the batch-file proceeds to build and executes the unit-tests. Gets executed every day by the Windows Task Scheduler. SourceSafe supports the same[^].

        Bastard Programmer from Hell :suss:

        M Offline
        M Offline
        meeram395
        wrote on last edited by
        #3

        Thank you for the reply. I was actually looking for a similar kind of functionality. I will go through the same and come back to you.

        Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

        J 1 Reply Last reply
        0
        • M meeram395

          Thank you for the reply. I was actually looking for a similar kind of functionality. I will go through the same and come back to you.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          J Offline
          J Offline
          JV9999
          wrote on last edited by
          #4

          A better solution would be to setup a mirror server in India which gets (and sends) a backup every night to the uk server. In this case the uk-server should be the master and the India-server slave. We used a similar principle on a previous assigment and that worked quite well. This still ensures that you have the latest sources and can use the benefits of VSS, but keeps it all structured.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups