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 320477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:45:26+00:00 2026-05-12T08:45:26+00:00

In My Windows based project set, of XML files are located at c:\TestProj\XmlSource. My

  • 0

In My Windows based project set, of XML files are located at “c:\TestProj\XmlSource”.

My mission is to programmatically create schema files for those xml files.

I am executing the code as follow:

string directoryName = @”c:\TestProj\XmlSource”;

foreach (string foundName in System.IO.Directory.GetFiles(directoryName)) 
{ 
    Process.Start(@"c:\TestProj\xsd.exe",
                  Path.Combine(directoryName, foundName));
}

The code is working fine and the XSDs are generated.The problem is ,the XSDs are generated in Debug folder. I want to create those XSDs in XSD folder( c:\TestProj\XmlSource\XSD).How can I force the XSD.exe to produce the output to the desired folder. I am in a bit confusion to handle the outputDir switch.

  • 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-12T08:45:26+00:00Added an answer on May 12, 2026 at 8:45 am
    string directoryName = @"c:\TestProj\XmlSource"; 
    
    foreach (string foundName in System.IO.Directory.GetFiles(directoryName)) 
    { 
    Process.Start(@"c:\TestProj\xsd.exe", Path.Combine(directoryName, foundName) + " /o:c:\TestProj\XmlSource\XSD"); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have composite project which contains: C++ library for Linux/Windows, C++/CLI library based on
I use Visual Studio .NET to create a Windows-based application. The application includes a
Can anyone explain to me how to create a uninstall command for a Windows-based
I've got a question about CSS based popup windows, like those generated by jQuery
I have an iPhone project that I started as a Windows-based app and another
I have no idea how to set up a menu based project in xcode
i try to set up an Xcode project based on the template OpenGL Game.
In previous versions of Xcode creating a window-based, universal application would populate the project
I've been developing Windows based applications for a long time and most of my
Using VB.NET Windows Based Application In my software I am using a login page,

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.