Javascript to read other files in hard drive?

爱⌒轻易说出口 提交于 2019-12-12 04:43:00

问题


I am writing a front end program to load when my hard drive is plugged in. The file is called Boot.htm, so to get this name I use

var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/')+1);
alert(filename);

Can I get the names of other files in the same place (root of hard drive), dynamically using just Javascript?

来源:https://stackoverflow.com/questions/25713218/javascript-to-read-other-files-in-hard-drive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!