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. C#
  4. Executing a batch file from C#

Executing a batch file from C#

Scheduled Pinned Locked Moved C#
csharpdatabasesysadmintoolshelp
2 Posts 2 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.
  • K Offline
    K Offline
    krishna19
    wrote on last edited by
    #1

    Hi, I have a server database and multiple client databases. We need to update client databases everytime server database is updated. And we need to do it using .Net i.e through the application server. We intend to use ftp for file transfer and windows services to schedule it. We have a batch file(dos-script) which reads from the flat file and updates the local database. I need some help regarding running the batch file from windows services(using C#). Can you suggest any way to do it as i am completely clueless now.... Thanks in anticipation....

    J 1 Reply Last reply
    0
    • K krishna19

      Hi, I have a server database and multiple client databases. We need to update client databases everytime server database is updated. And we need to do it using .Net i.e through the application server. We intend to use ftp for file transfer and windows services to schedule it. We have a batch file(dos-script) which reads from the flat file and updates the local database. I need some help regarding running the batch file from windows services(using C#). Can you suggest any way to do it as i am completely clueless now.... Thanks in anticipation....

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Process.Start("yourbatchfile.bat");

      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