I need to convert the file path in windows say C:\\Documents and Settings\\Manoj\\Desktop for java as C:/Documents and Settings/Manoj/Desktop .
Is there any utilit
String path = "C:\\Documents and Settings\\someDir"; path = path.replaceAll("\\\\", "/");
In Windows you should use four backslash but not two.