system call

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxlc3Npbw==?=

    #1

    system call

    I need to make a system call from an Excel macro to execute something in DOS.
    I there a command like system("command ") in Visual Basic?
    Thanks a lot
  • RobinS

    #2
    Re: system call

    Try posting your question to a VB6 or Excel programming newsgroup. This is
    a VB.Net newsgroup.

    In .Net, you use "Process.Start" , but I don't think this will work for you.

    Robin S.
    ----------------------------------
    "Alessio" <Alessio@discus sions.microsoft .comwrote in message
    news:84A3E77E-59D4-4EB6-901D-BD9A21BAD4DE@mi crosoft.com...
    >I need to make a system call from an Excel macro to execute something in
    >DOS.
    I there a command like system("command ") in Visual Basic?
    Thanks a lot

    Comment

    • Michael M.

      #3
      Re: system call

      the inbuilt function would be .

      there is a object browser open it up and explore what the language provides

      shell("C:\windo ws\system32\get mac")

      if you need to more control over parameters and return codes / handles etc,
      you will need the API function

      SHELLEXECUTE( )

      Mike

      "Alessio" <Alessio@discus sions.microsoft .comwrote in message
      news:84A3E77E-59D4-4EB6-901D-BD9A21BAD4DE@mi crosoft.com...
      >I need to make a system call from an Excel macro to execute something in
      >DOS.
      I there a command like system("command ") in Visual Basic?
      Thanks a lot

      Comment

      Working...