这个问题在这里已有答案:
如何使用javascript或Jquery使用文件系统或操作? 2个答案我有一个文件夹,每天收到15个不同的文件,每天名称不同。 每天唯一常见的事情是文件扩展名(所有文件的.pdf)。
我试图弄清楚如何使用javascript或jquery将以.pdf结尾的所有文件从一个文件夹移动到另一个文件夹。
如果可能的话,我更愿意使用其中一个选项来代替批处理文件或其他选项。
有没有人有什么建议?
谢谢!
This question already has an answer here:
How to use file system or operation using javascript or Jquery? 2 answersI have a folder that receives 15 different files each day, with differences in the name each day. The only common thing each day is the file extension (.pdf for all files).
I'm trying to figure out how to use javascript or jquery to move all files ending in .pdf from one folder to another.
I'd prefer using one of these options if possible in lieu of a batch file or other option.
Does anyone have any suggestions?
Thanks!
最满意答案
您无法使用客户端Javascript或任何客户端javascript库(如Jquery)将文件从一个文件夹移动到另一个文件夹。 您需要使用服务器端编程语言。 如果您不想编写批处理脚本,则可能需要编写PHP程序或Java程序,或者基本上使用服务器端编程语言编写程序。
You cannot move a file from one folder to another using client-side Javascript, or any client-side javascript library such as Jquery. You need to use a server side programming language for that. If you don't want to write a batch script, you may want to write a PHP program or a Java program, or basically a program using server side programming language.
更多推荐
发布评论