Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 26th, 2006, 12:14 AM
Authorized User
 
Join Date: Jun 2006
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old October 26th, 2006, 06:40 AM
Authorized User
 
Join Date: Jan 2005
Location: , , .
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>


Reply With Quote
  #3 (permalink)  
Old October 28th, 2006, 11:19 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: India.
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")

Reply With Quote
  #4 (permalink)  
Old October 30th, 2006, 06:23 AM
Authorized User
 
Join Date: Jun 2006
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.