🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #896

Re: Assigning an environment variable

#896
From: John McGrath TeamB
Date: Fri, 26 Jul 2002 05:34
40 lines
2253 bytes
On Thu, 25 Jul 2002 10:24:28 -0400, Maritza Roldan Campos wrote:

> In batch file or from the command prompt I try many variations but none of
> those worked:
> 
> set myYar=c:\myDir\myJar.jar myTargetDir
> 
> set myYar=c:\myDir\myJar.jar!\myTargetDir
> 
> set myYar=c:\myDir\myJar.jar\myTargetDir

None of these are close to the one that I suggested, which was:

  jar:file:D:/aaa/bbb/ccc/JarFile.jar!/xxx/yyy/zzz

> Basically this is my situation: I have dll file. One of the 
> methods takes the parameter and accordingly is looking for
> environment variable in Windows system. If it has been found,
> then the application refers according the path to this
> directory for grabing some data.

You need to know what the method expects as an argument.  Your 
environment variable cannot be "equal" to a directory;  it can
only hold a string.  It is up to that method to interpret this
string.

> In my case this directory is located in jar file. The situation
> makes me to keep it there.

Does the method in the DLL know how to handle JAR files?  If not, 
you are not going to get very far.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.17aaa94d4721cbae98b8b3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <1027540302.281973@news.drenet.dnd.ca> <MPG.17a9352326246c998b8aa@newsgroups.borland.com> <1027607068.459544@news.drenet.dnd.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,8b910bccf5f7b60c
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-25 22:43:11 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Assigning an environment variable
Date: Fri, 26 Jul 2002 01:34:16 -0400
Message-ID: <MPG.17aaa94d4721cbae98b8b3@newsgroups.borland.com>
References: <1027540302.281973@news.drenet.dnd.ca> <MPG.17a9352326246c998b8aa@newsgroups.borland.com> <1027607068.459544@news.drenet.dnd.ca>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1027661653 209.92.40.60 (25 Jul 2002 22:34:13 -0700)
Lines: 40
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews