var path = "c:\\123.text";
var uploadFile = document.getElementById("uploadFile");
var WshShell=new ActiveXObject("WScript.Shell");
//将路径放入剪切板
window.clipboardData.setData('text', path);
uploadFile.focus();
//Ctrl + A 操作
WshShell.sendKeys("^a");
//Ctrl + V 操作(sendKeys对于中文赋值操作显得无力,所以只能模拟键盘操作)
WshShell.sendKeys("^v");