🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #141723

Re: Jak uzyskać ścieżkę dostępu do aktualnego katalogu jako String?

#141723
From: Brzezi
Date: Fri, 17 Oct 2008 10:38
20 lines
1910 bytes
pią, 17 paź 2008 o 10:55 GMT, pluton napisał(a):

>> Mam następujący problem: muszę znaleźć jakiś sposób, by do zmiennej
>> Stringowej zapisać ściezkę dostępu do aktualnego katalogu. Problem w tym, 
>> że katalog jest pusty. Gdyby nie był pusty użyłbym klasy File i odpalił 
>> getCanonicalPath()...
> 
> Jezeli chodzi ci o miejsce, z ktorego odpalono komente ;java; ,
> to chyba    String currentDir = System.getProperty("user.dir");

Dostal juz odpowiedz wczoraj..., dokladnie taka jak Ty dzisiaj powtarzasz
:)

Pozdrawiam
	Brzezi
-- 
[    E-mail: brzezi@enter.net.pl ][  GEEK CODE [Version: 3.12]: GCM dpu s+:-  ]
[       Ekg: #3781111            ][  a--- C+++ UL++ P+ L+++ E--- W+++ N+++    ]
[ LinuxUser: #249916             ][  o-- K- w--- O-- M- V- PS PE Y PGP--- t+  ]
                                  [  5- X++ R* tv+ b- DI- D+ G+ e- h! r y--   ]
Technical Details
Message-ID: <slrn.pl.gfh00c.gsc.usunto.brzezi@localhost.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!newsfeed.atman.pl!not-for-mail
References: <gd7p0e$ghi$1@atlantis.news.neostrada.pl> <gd9jvh$ihv$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!newsfeed.atman.pl!not-for-mail
From: Brzezi <usunto.brzezi@enter.net.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: Jak uzyskać ścieżkę dostępu
 do aktualnego katalogu jako String?
Date: Fri, 17 Oct 2008 10:38:10 +0000 (UTC)
Organization: Hard Core Slrn-pl User
Lines: 20
Message-ID: <slrn.pl.gfh00c.gsc.usunto.brzezi@localhost.localdomain>
References: <gd7p0e$ghi$1@atlantis.news.neostrada.pl> <gd9jvh$ihv$1@inews.gazeta.pl>
NNTP-Posting-Host: chello089077080110.chello.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1224239890 9648 89.77.80.110 (17 Oct 2008 10:38:10 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 17 Oct 2008 10:38:10 +0000 (UTC)
X-Licznik: 9213
User-Agent: slrn/0.9.7.4 (pl-1.4.3) (Linux/2.6.24-19-generic (i686))
X-NNTP-Posting-Host: localhost.localdomain
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit