Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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
  #1 (permalink)  
Old March 14th, 2008, 04:07 AM
Authorized User
Points: 110, Level: 2
Points: 110, Level: 2 Points: 110, Level: 2 Points: 110, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2008
Location: India
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call VB exe in another vb program

hi,
i want to call vb exe from amother vb exe.
for this i am using the following code:

    Dim dblRetVal As Double
    dblRetVal = Shell(App.Path & "\Cheque Print.exe", 2)

But this is giving me the error as "Object required".
Why is it so? Any idea or suggestion for this.
Thanks in advance.

987654321
__________________
987654321
  #2 (permalink)  
Old March 14th, 2008, 11:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

VB 6 or VB.NET? VB.NET, consider using System.Diagnostics.Process and ProcessInfo classes. You can use Process.Start(<path>) to start a process...

Brian


Similar Threads
Thread Thread Starter Forum Replies Last Post
call external program from vb.net praswani Pro VB.NET 2002/2003 2 October 18th, 2007 07:19 AM
Running an external program (.exe) in VB.net webgen VS.NET 2002/2003 1 July 18th, 2005 12:57 PM
Use VB to call Matlab to execute program fennsc VB How-To 0 March 14th, 2005 09:57 PM
Call VB Exe from VB Program jmss66 VB How-To 5 December 12th, 2004 11:17 AM
How to call a program in as400 through vb 6 gokul VB Databases Basics 0 October 20th, 2004 03:41 AM





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