As long as you don't need the actual path you can tell the program to
use the current directory, which for any app is usually the directory in
which it was initiated from by simply adding a period the beginning of
the path declaration.

 

Example:

 

Say I want to open a pictures in a images folder that resides in the
same directory as my executeable. 

 

I can open the picture this way.  "./images/picture.jpg"

 

Does this resolve your issue?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Van
Grinsven
Sent: Wednesday, January 16, 2008 10:34 AM
To: [email protected]
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] <mailto:[EMAIL PROTECTED]> 
http://www.medbuy.ca <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]
<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] <mailto:[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.
**********************************************************************




-----------------------------------------
CONFIDENTIALITY NOTICE: This communication is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is privileged, confidential, and exempt
from disclosure under applicable law.  If you are not the intended
recipient, you are notified that any use, dissemination,
forwarding, distribution, or copying of the communication is
strictly prohibited.  Please notify the sender immediately by
e-mail if you have received this by mistake and delete this e-mail
from your system. (University Health System)

Reply via email to