471,348 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

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.
--
mo*******@newsgroup.nospam
Mar 31 '08 #1
1 4249
On Mar 31, 1:38 pm, "moondaddy" <moonda...@newsgroup.nospamwrote:
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...@newsgroup.nospam
If you'd like to run the script pre- or post-build, you can add it in
the "ProjectName" Properties Build Events area. There are a few
options of when you want to run the post-build event.

goodluck,
-tom
Mar 31 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Phil Powell | last post: by
1 post views Thread by Ruchika | last post: by
reply views Thread by Kevin Cheramie | last post: by
9 posts views Thread by Franz Marksteiner | last post: by
2 posts views Thread by LayneMitch via WebmasterKB.com | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.