Article View: borland.public.jbuilder.java.api
Article #895Re: Assigning an environment variable
From: Maritza Roldan Campos
Date: Thu, 25 Jul 2002 14:24
Date: Thu, 25 Jul 2002 14:24
56 lines
2736 bytes
2736 bytes
Hello again, Thank you for the information provided! Based on that I tried to do the following: 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 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. In my case this directory is located in jar file. The situation makes me to keep it there. How to assign the environment variable using DOS command to be equal to this directory in side jar file? Any ideas? Thanks, Maritza. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.17a9352326246c998b8aa@newsgroups.borland.com... > On Wed, 24 Jul 2002 15:51:49 -0400, Maritza Roldan Campos wrote: > > > I have a jar file, inside of this jar file I have a directory called > > MyDirectory. > > Question: How to assign the system environment variable to that directory? > > You could use a string specifying the URL of that directory. The URL > string would look something like this: > > jar:file:D:/aaa/bbb/ccc/JarFile.jar!/xxx/yyy/zzz > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<1027607068.459544@news.drenet.dnd.ca>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<1027540302.281973@news.drenet.dnd.ca> <MPG.17a9352326246c998b8aa@newsgroups.borland.com>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 07:47:49 PST From: "Maritza Roldan Campos" <roldan@lsec.lete.dnd.ca> Newsgroups: borland.public.jbuilder.java.api References: <1027540302.281973@news.drenet.dnd.ca> <MPG.17a9352326246c998b8aa@newsgroups.borland.com> Subject: Re: Assigning an environment variable Date: Thu, 25 Jul 2002 10:24:28 -0400 Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: DRDC Message-ID: <1027607068.459544@news.drenet.dnd.ca> Cache-Post-Path: news.drenet.dnd.ca!unknown@ns2.lsec.lete.dnd.ca X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 131.136.242.1 X-Trace: dnews 1027607068 131.136.242.1 (25 Jul 2002 07:24:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews