CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Exec

  1. #1
    Join Date
    Sep 1999
    Location
    FL, USA
    Posts
    3

    Exec

    Do I have to install any component/reference in order for me to use the Exec function? I get an error message # 35 (Sub, Function, or Property not defined. My sintax is Exec("c:\??????????"), which is the same way the VB help explain.


  2. #2
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: Exec

    Hi,

    I am sorry, You are using a WRONG syntax. Please use this:

    X = Shell("C:\Windows\Calc.exe", vbMaximizedFocus)



    This is just an example. It returns a double.
    I hope this solves your problem.

    Santulan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured