我想用Javascript确定"my documents“文件夹的路径。我需要它来指定我可以存储应用程序日志的文件夹。
谢谢
发布于 2011-06-29 19:03:35
使用shell的SpecialFolders-方法:
shell = new ActiveXObject("WScript.Shell");
pathToMyDocuments = shell.SpecialFolders('MyDocuments');http://msdn.microsoft.com/en-us/library/0ea7b5xe%28v=vs.85%29.aspx
发布于 2011-06-29 17:42:55
由于明显的安全原因,您不能使用Javascript访问客户端文件系统。
https://stackoverflow.com/questions/6518588
复制相似问题