How could i parse the %AppDir% variable so that the result would be c:\\program files\\program instead of c:\program files\program. Java classpaths needs the path to be defined like this. A simple search and replace function could do the trick but how?

