Welcome Guest | My Membership | Login

SBClient: Execute Windows Command on Workstation


Article

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 = EXECUTE.TYPE : WINDOW.STATE
DOS.CMD = DOS.CMD : "c:\windows\notepad.exe"
CALL TU.EXECUTE.SHELL(DOS.CMD,"")

Example:

Open Web Brower on Workstation:

URL = "HTTP://www.google.com/"
DOS.CMD = "+1"
DOS.CMD = DOS.CMD : "START '": URL
CALL TU.EXECUTE.SHELL(DOS.CMD,"P")

 

# # #          # # #          # # #

 

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.

  • 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