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
**********************************************************************
As you are aware, e-mails sent via Internet can easily be prepared or
manipulated by third persons, For this reason we trust you will understand
that, for your own and our protection, we rule out the legal validity of the
foregoing statements and comments. The applicable regulations of OVSoftware
on the legal validity of declarations of intent of a binding nature remain
unaffected.
This message is confidential. It may also be privileged or otherwise
protected by legal rules. It may be unlawful for you to read, copy or use it
in anyway. If you have received it by mistake please let us know by reply
and then delete it from your system.