.CLIENT LOAD URL

This subroutine loads a URL, document or runs a command on the user's PC.


Usage:

      PASS         <url>                      FIELD            SHARE? Y
      GOSUB    --- .CLIENT LOAD URL
      *        Check for errors
      IF       --- .CLIENT LOAD URL           NE

Description:

This subroutine loads a URL, document or runs a command on the user's PC. The <url> parameter is required, if it is missing the subroutine will CANCEL.

<url> is the URL or document to open, or the command to run on the user's PC. It can take several forms:

  • http://, https:, ftp://, mailto:, or any other valid web URL
  • The name of a file accessible to the user's PC. In this case, the client will rely on the desktop O/S to determine the correct program to use. For Macintosh clients, you will need to set the client desktop preference for commandShell to 'open'. For Linux clients, you also need to set -commandShell to some program that will examine the file type & call the appropriate program to open it.
  • A program on the user's PC. For Windows and Linux desktops, prefix the program name with an '@', ie, @notepad or @gedit. Remember that Linux desktops are case sensitive. You can pass additional arguments after the program name, ie, @notepad somefile.txt. For Macintosh clients, just pass the complete path to the program, ie, /Applications/Chess.app
  • A network path, such as \\<server_name\<share_name> for Windows desktops, or smb:////<server_name/<share_name> for Linux or Macintosh desktops.
  • The constant '$beep:'. This will make the client play a 'beep' sound.
  • The constant '$play:' followed by the file name of a 'wav' file, ie, $play:/Users/bsmith/Desktop/TestSnd.wav

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2012-02-01

Edit | Attach | Watch | Print version | History: r11 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2012-02-01 - JeanNeron
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback