C# Save as File dialog help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivishekahr
    New Member
    • Oct 2008
    • 1

    C# Save as File dialog help

    Hi

    i am havin a prob . i am making a project in which i need to back up and restore the data base from MYSQL

    for backup i need the savefile dialog to save the file as system date with default ext as .sql

    and i have made a bat file which executes the mysql dump command and backups the database

    i also need to knw how to call the batch file from the c# UI by adding it to resources.

    If any alternate soluttion plz provide

    thanks in advance
  • NitinSawant
    Contributor
    • Oct 2007
    • 271

    #2
    call the batch file from the c#??


    did you mean execute the bat file from C#??


    here's the way,

    Code:
    System.Diagnostics.Process.Start("c:\\Path of file.bat", "arguements");

    Comment

    Working...