<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 289: Working directory relative to where the program is started</title><link>https://sourceforge.net/p/wrapper/support-requests/289/</link><description>Recent changes to 289: Working directory relative to where the program is started</description><atom:link href="https://sourceforge.net/p/wrapper/support-requests/289/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 06 Oct 2010 13:43:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wrapper/support-requests/289/feed.rss" rel="self" type="application/rss+xml"/><item><title>Working directory relative to where the program is started</title><link>https://sourceforge.net/p/wrapper/support-requests/289/</link><description>Hi,

I am trying to make a command line tool that behaves like the Windows copy command. Where:
copy myfile.txt mycopy.txt
copies the relative file myfile.txt to another relative file mycopy.txt. Both the files are relative to current working directory. 

But when I launch my program using the wrapper the all paths are resolved relative to the "copy.exe" file since the working directory of the JVM is the directory of the copy.exe dir. 
I have played with the wrapper.working.dir configuration but it lacks a "Users current working directory" option.

Is there a way to get access to the users working directory from within Java? </description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tobias Tobiasen</dc:creator><pubDate>Wed, 06 Oct 2010 13:43:18 -0000</pubDate><guid>https://sourceforge.net0ec15356fa5e906b4e2e62f3286ead5dfa6f2b2a</guid></item></channel></rss>