Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2006, 12:14 AM
Authorized User
 
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shell command or calling VB exe

Hi all,
Can anyone tell me the syntax of shell command(i use it in Visual basic to call a VB exe)
or
can anyone tell how to call a VB exe from C#.net windows application?
thanks in advance
 
Old October 26th, 2006, 06:40 AM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<script language="jscript">
   function RunExternalProgram()
    {var oShell ;
     var commandtoRun ;
     var commandParms ;
     oShell = new ActiveXObject("Shell.Application");
     commandtoRun = "C:\\VBDIR\\VB.exe";
     commandParms = "abc.vb";
     oShell.ShellExecute(commandtoRun,commandParms, "", "open", "1");
     return 0;}
</script>


 
Old October 28th, 2006, 11:19 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

System.Diagnostics.Process.Start("C:\ABC.EXE")

 
Old October 30th, 2006, 06:23 AM
Authorized User
 
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot Dilip Nagle and ashu_from_india.your posts helped me out in solving the problem





Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a shell command in sharepoint. Final_Boss SharePoint Development 0 August 17th, 2007 12:24 PM
Shell command under Windows Vista mileski Access VBA 0 April 16th, 2007 10:17 AM
Shell command execution error toshesh VB Databases Basics 3 January 7th, 2006 03:17 AM
.NET EXE won't run right in SHELL from VBS Ron Howerton General .NET 1 December 20th, 2004 05:49 PM
How to integrate vb6.exe into Explorer Shell schurli VB How-To 0 April 3rd, 2004 03:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.