If you use 'GetForegroundCaption" before you open any other windows (assuming 
that BWS is the topmost window), or force BWS to come to the front, you can 
retrieve the path of your executable.  Just filter out the 'Boston WorkStation 
- " that preceeds the full path.

Neal Quinn
Montefiore Medical Center
  ----- Original Message ----- 
  From: Brian Van Grinsven 
  To: [email protected] 
  Sent: Wednesday, January 16, 2008 11:33 AM
  Subject: RE: [Talk] Visual Basic App.Path Work Around



  app.path = the directory where the application was run 

  eg. my app is located in 
  C:\MYAPPPATH\myapp.exe 

  app.path will equal "C:\MYAPPPATH\" 
  ...................................
  Brian Van Grinsven
  Integrated Systems Specialist
  Medbuy Corporation
  mailto:[EMAIL PROTECTED]
  http://www.medbuy.ca
  T: 519.652.1688 ext. 114
  F: 519.652.2788

  Technical Support:
  ext. 199 or [EMAIL PROTECTED]

  Building Partnerships in Healthcare 


        "Brian Stevenson" <[EMAIL PROTECTED]> 
        Sent by: [EMAIL PROTECTED] 
        01/16/2008 11:30 AM Please respond to
              [email protected] 


       To <[email protected]>  
              cc  
              Subject RE: [Talk] Visual Basic App.Path Work Around 

              

       



  What does the app.path tell you or what information is stored there? 
    
  Brian Stevenson - Systems Administrator 
  University Health System - Business Information Systems 
  Office: (210) 358 - 9282 
  Pager: (210) 756 - 0582 
  Fax: (210) 358 - 9287 
    


------------------------------------------------------------------------------
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gersh, Alan
  Sent: Wednesday, January 16, 2008 10:27 AM
  To: [email protected]
  Subject: [Talk] Visual Basic App.Path Work Around

  Hello, 
    
  I have recently join the Boston Workstation family of customers. I am working 
on converting our current Meditech scripts to the Boston Workstation 
environment and have run into a small snag. Some of our current scripting code 
uses the visual basic App.Path property. I have been informed that Boston 
Workstations VBA environment does not support the App object and does not have 
a equivalent to the  App.Path property. Has anyone found or develop a work 
around?   
    
  Alan Gersh 
  Systems Analyst, Information Technology Department 
  Martin Memorial Health Systems, Inc. 
  Phone: 772.223.5945 ext: 4825 
  Email: [EMAIL PROTECTED] 

  **********************************************************************
  This e-mail and any attachments may contain confidential and 
  privileged information. If you are not the intended recipient, please 
  notify the sender immediately by return e-mail, delete this e-mail and 
  destroy any copies. Any dissemination or use of this information by a 
  person other than the intended recipient is unauthorized and may be 
  illegal.
  **********************************************************************

Reply via email to