asp.net - How to execute an external script that is in notepad from c# -


i wrote script in notepad , saved in folder. want execute script c# button click.

can please me how it?

since have chosen asp.net tag: want start script on server or on client machines? can start script on server, starting scripts out browser different story:

process.start(@"c:\myscript.vbs"); 

just make sure have following line @ top of file:

using system.diagnostics; 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -