Home > Tricks & Tips > Get current directory

Get current directory

Quick snippet for retrieving current path:

String currentPath = System.getProperty("user.dir");

Pete Houston

Categories: Tricks & Tips Tags: , , ,
  1. August 26, 2014 at 5:44 pm

    Hello i am kavin, its my first occasion to commenting anyplace,
    when i read this paragraph i thought i could also make comment
    due to this good article.

  2. July 31, 2013 at 7:59 am

    Hey there outstanding blog! Does running a blog like this take a massive amount work?
    I’ve virtually no knowledge of coding however I had been hoping to start my own blog soon. Anyway, should you have any recommendations or tips for new blog owners please share. I understand this is off topic but I simply had to ask. Appreciate it!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: