-4

Is it possible to read file with attribute hidden in program? I know the path to file.

For example, if I copy a file to some place and set the attribute hidden:

File.Copy("sender.exe", path+"system.exe");
File.SetAttributes(path + "sender.exe", FileAttributes.Hidden);

Can I run the hidden .EXE file with this code (if I know path)?

function Run(path, lang, city) {
    var shell = new ActiveXObject("WScript.Shell");
    shell.run(path + " " + city + " " + lang);
}
Chris Barlow
  • 3,274
  • 4
  • 31
  • 52
lapots
  • 12,553
  • 32
  • 121
  • 242

1 Answers1

5

Yes; that's perfectly possible.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964