Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014482
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:30:08+00:00 2026-05-20T09:30:08+00:00

I have 3 projects that I use svn for them. My folder system is

  • 0

I have 3 projects that I use svn for them. My folder system is that: There is a folder projects, within projects folder there are 3 projects projectA, projectB and projectC.

I have a Windows batch script code like that:

d:
cd projectA
svn update
cd ../projectB
svn update
cd ../projectC
svn update

The purpose of it with one .bat file I want to update all of my projects. That code seems like can be improved. Is it possible to change it like:

set folder=projects
set directories=(projectA projectB projectC)
set command=svn update
d:
for %%i in %directories% do cd.. && cd %folder%/%%i && %command%

That code fails on somewhere. It should be change to do while loop or something like that because it tries to make cd projects\projectB while it is under projects folder (It should be at upper folder of projects to execute cd projects\etc.)

EDIT: @Andriy M There is a screenshot from my computer. Red is projectA, blue is projectB and purple is projectC.

Here it:
screenshot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:30:09+00:00Added an answer on May 20, 2026 at 9:30 am

    What prevents you from implementing it like this:

    SET folder=D:\fullpath\project
    SET directories=(projectA projectB projectC)
    SET command=svn update
    FOR %%i IN %directories% DO (CD /D %folder%\%%i && %command%)
    

    ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few Java/Maven projects that I want to use in a Grails
Is it possible to use Phonegap's Build service to build projects that may have
We have a Library Project that we use for all our central reused code
Good day, I have a library project that i use to create a paid
I have inherited a web site project that makes use of a number of
My use case is this... I have a project that has two production branches.
I have a maven project that contains a certain api I need to use
I have a working project that Im amending, it crashes after trying to use
I want to add more functionality to a project I have that makes use
I have a PhoneGap/Cordova project that means I must use a combination of JQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.