Hi,
In my current project I'd like to transform a filename into a URL:
'C:\projects\currentproject\file.txt' should become
'/projects/currentproject/file.txt'
The backward slashes are converted to forward slashes by using the 'replace'
task.
To be drive independant it should be nice to be able to determine the drive.
So instead
of replacing the 'C:' by an empty string I want to replace the drive by an
empty string.
The system variable 'user.home' doesn't do the job.
Anyone any suggestions?
Thanks.
Marco