Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to run dos command from code behind C#
Previous Previous
 
Next Next
New Post 7/7/2008 11:23 PM
User is offline Prabhu Prakash
2 posts
10th Ranked


How to run dos command from code behind C# 

HI,

I need to re-build msi through program using c#. I tried to re-build through Command Prompt. Its working fine when i run through dos prompt. I wanna implement the same from Code behind..User will give their Local MSI path to the website(Application) and  from the server (site) i need to re-build the msi using the following command which will re-build the  msi.

How to run these commands from Code Behind.

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE>devenv
/build deb
ug "C:\MSI Solution Path"

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE>devenv
/run "C:\MSI SOlution path"

I dont want Batch file. I tried out javascript but lot of security is issue and window script 5.6 issue. Please kindly advice me to solve this issue ASAP.

Thanks and Regards

Prabhu Prakash

 
New Post 7/7/2008 11:33 PM
User is offline Chris Hammond
2884 posts
engagesoftware.com
5th Ranked








Re: How to run dos command from code behind C# 

Are you trying to do this in a DNN (dotnetnuke) website, or is this just a general programming question?


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 7/8/2008 12:38 AM
User is offline Prabhu Prakash
2 posts
10th Ranked


Re: How to run dos command from code behind C# 

No. I am trying out this for one of my application.

Kindly provide me with your valuable solution which will brink brightness for my last 4 dark days for solving this problem

 

 
New Post 9/24/2008 8:27 PM
User is offline tk
1 posts
10th Ranked


Re: How to run dos command from code behind C# 

Hi Prabhu,

I had the same problem.  I got around it by using devenv.com rather than devenv.exe.

ie in C# (Visual Studio 8)

            string Args = @" C:\Code\test.csproj /build Release";
            Process tfs = Process.Start("C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.com", Args);
            tfs.WaitForExit();
            if (tfs.ExitCode ==0)  // Success

Hope this helps

TK

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to run dos command from code behind C#
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP