Creating directories in remote PC using Java -


i need create directory in pc using java, used file class,
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.

d: in path constructing not valid. use d$ instead if admin on remote machine. path should \\machinename\sharename\folder\subfolder...


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -