【发布时间】:2017-06-13 20:44:35
【问题描述】:
我正在尝试使用runas 和 xcopy 将 scr 文件复制到 c:\Windows\System32,但它使我的应用程序崩溃。我正在用 ClojureScript 编写代码,所以我的代码如下所示:
(runas "C:\\Windows\\System32\\xcopy.exe"
#js ["C:\\Users\\pupeno\\Documents\\Dashman\\clients\\dist\\win-unpacked\\Dashman.scr"
"C:\\Windows\\System32\\"
"/F"]
#js {:admin true})
编译为:
configurator.main.runas.call(null,
"C:\\Windows\\System32\\xcopy.exe",
["C:\\Users\\pupeno\\Documents\\Dashman\\clients\\dist\\win-unpacked\\Dashman.scr",
"C:\\Windows\\System32\\",
"/F"],
({"admin": true}));
当我运行此代码时,我被要求输入密码,但随后应用程序就冻结了。有什么想法可能有什么问题吗?
谢谢
【问题讨论】:
标签: javascript electron clojurescript runas