Welcome Guest | My Membership | Login

SBClient: Execute Windows Command on Workstation


The following code will allow a MultiValue BASIC routine to execute a Windows/DOS command on the Workstation that is running SBCLIENT, SB/XA Browser Client, and SB/XA Rich Client.

CALL TU.EXECUTE.SHELL(command,option)

option = Additional Arguments to send to the command line.
'P' - Special command for DOS command lines. Do not convert '/' to '\'

command = This is the command line information to execute. This includes additional metadata to support window sizes and state.

EXECUTE.TYPE = "+" ;* - = Run DOS command, Suspend SBClient until complete.
;* + = Run Windows command, suspend SBCLIENT until complete.
;* & = Start Windows Command, and return to SBCLIENT.
WINDOW.STATE = "1" ;* 0 - Run the Program, but hide the window
;* 1 - Run the program, normal windows
;* 2 - Run the program, Minimized window
;* 3 - Run the program, Maximized Window
DOS.CMD = DOS.CMD : "c:\windows\notepad.exe"


Open Web Brower on Workstation:

URL = "HTTP://www.google.com/"
DOS.CMD = "+1"


# # #          # # #          # # #


Related Articles

  • Numeric to Alpha Translation

    Database: D3, Advanced Pick, AREV, jBASE, Mentor/PRO, mv*Base, mvEnterpise, OpenInsight, OpenQM, Reality, Ultimate, UniVerse, UniData, UniVision

    The attached subroutine will convert a numeric values to their alphabetic values. The number "4" converts to "four"; "25" converts to twenty five, etc. There is also an option that will allow you to change a numeric value into an alphabetic count. For example, 4 converts to "forth", "25" converts to twenty-fifth.

  • Six Million Dollar Date

    Company: HDWP

    We've looked at how to wrap the OPEN statement (Six Million Dollar Open) previously. This time we are going to wrap one aspect of the INPUT statement, date handling. People outside of our industry may not consciously realize it, but dates are tricky things.

  • Useful Tips on Migrating from Legacy PICK

    Company: Rocket Software

    Useful Tips on Migrating from Legacy PICK Your system sends up certain red flags when its performance has degraded. These signals might include missing your maintenance windows, users complaining about slow system response times, or unreasonably high system maintenance fees. Perhaps your customers are saying the application needs modernization, but the programming backlog is six months and growing. How do you solve these problems? Replace your legacy PICK system!

Return to top