I need to create a directory in another PC using Java, so I used FILE class,
my code structure is
String path = "\\\\192.148.64.99"+File.separator+"D:"+File.separator+"hello";
String fname= path+File.separator+"Sample.pdf";
File file = new File(fname);
System.out.println("Exists"+file.exists());
file.getParentFile().mkdirs();
This throwing error.