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

  • SEARCH
  • Home
  • 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 8149973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:57:27+00:00 2026-06-06T14:57:27+00:00

I am trying to back up my reposotries using a C# Code Process svnCommand

  • 0

I am trying to back up my reposotries using a C# Code

        Process svnCommand = null;
        var psi = new ProcessStartInfo("svnadmin");
        psi.RedirectStandardOutput = true;
        psi.RedirectStandardError = true;
        psi.UseShellExecute = false;
        psi.Arguments= @"dump C:\Repositories\Myrepo > C:\temp\myrepodumpfile.dump";

        using (svnCommand = Process.Start(psi))
        {     
            var myoutput = svnCommand.StandardOutput;

            var myerror = svnCommand.StandardError;



            Debug.Write("Output :" + Environment.NewLine +
                Environment.NewLine + myoutput.ReadToEnd() +
                Environment.NewLine + "Error :" +
                Environment.NewLine + Environment.NewLine +
                myerror.ReadToEnd());

            svnCommand.Close();
        }

When i use the dump command from the commandline

svnadmin dump C:\Repositories\Myrepo > C:\temp\myrepodumpfile.dump

it works fine but when i try to use it through C# code given above it gives error as

svnadmin: E205000: Try 'svnadmin help' for more info
svnadmin: E205000: Too many arguments

My SVN info :

SVN version 1.7.5
Environment variable aslo set (i can use sv directly from cmd)

Cant seem to figure out whats the problem

  • 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-06-06T14:57:28+00:00Added an answer on June 6, 2026 at 2:57 pm

    > is a feature of the command line; you can’t use it when launching a process from C#.

    What > does is it takes the output that the process writes to StandardOutput and writes it to a file. That’s what you need to also implement in your program, e.g.

    var psi = new ProcessStartInfo("svnadmin");
    psi.RedirectStandardOutput = true;
    psi.RedirectStandardError = true;
    psi.UseShellExecute = false;
    psi.Arguments= @"dump C:\Repositories\Myrepo";
    
    using (var svnCommand = Process.Start(psi))
    {     
        var myoutput = svnCommand.StandardOutput;
    
        File.WriteAllText(@"C:\temp\myrepodumpfile.dump", myoutput.ReadToEnd());
    
        svnCommand.WaitForExit();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am trying to call back to a code behind method using Javascript
I'm trying to send back multiple variables from a php file to ajax using
I am trying to post back some data using a viewmodel i have created
I get the following message back when trying to retrieve a file using TCPClient
I have been trying to bring back 20 results of images using the Bing
I am using Eclipse with PHP and I am trying to trace back the
I'm trying to back a database via a PHP script using this one simple
I'm just trying to get back into .NET MVC with the new release and
In the code below, I am trying to get back the index of the
I am trying to go back to a previous activity using intents. The problem

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.