How to run script in command prompt using .net code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • moondaddy

    How to run script in command prompt using .net code

    I have a c# 3.0 solution where I need to periodically run a script at the
    command prompt for certain tasks. I would like to be able to do this from
    executing some .net code rather than manually coping the path to the script
    file into the command prompt and then running it. How can this be done?

    Thanks.
    --
    moondaddy@newsg roup.nospam


  • thomasnguyencom

    #2
    Re: How to run script in command prompt using .net code

    On Mar 31, 1:38 pm, "moondaddy" <moonda...@news group.nospamwro te:
    I have a c# 3.0 solution where I need to periodically run a script at the
    command prompt for certain tasks. I would like to be able to do this from
    executing some .net code rather than manually coping the path to the script
    file into the command prompt and then running it. How can this be done?
    >
    Thanks.
    --
    moonda...@newsg roup.nospam
    If you'd like to run the script pre- or post-build, you can add it in
    the "ProjectNam e" Properties Build Events area. There are a few
    options of when you want to run the post-build event.

    goodluck,
    -tom

    Comment

    Working...