读隐藏文件

lap*_*ots -4 javascript c# hidden-files

是否可以hidden在程序中读取带属性的文件?我知道档案的路径.

例如,如果我将文件复制到某个位置并将属性设置为隐藏:

File.Copy("sender.exe", path+"system.exe");
File.SetAttributes(path + "sender.exe", FileAttributes.Hidden);
Run Code Online (Sandbox Code Playgroud)

我可以使用此代码运行隐藏的.EXE文件(如果我知道路径)?

function Run(path, lang, city) {
    var shell = new ActiveXObject("WScript.Shell");
    shell.run(path + " " + city + " " + lang);
}
Run Code Online (Sandbox Code Playgroud)

SLa*_*aks 5

是; 这是完全可能的.