Back out of a directory for a URI in java -
i'm trying make app opens static webpage. pilot bigger project. @ moment i'm getting default browser open fine , test page loads up. however, work if html file in directory .class file. how can out of directory class file in , enter directory? similar cmd cd ....\whatever command.
thanks
to go in directory tree, use ../
:
../test1/example.txt
or can do:
currentdir.getparentfile();
Comments
Post a Comment