4

If I create a folder named nul (or con, prn,etc) which are DOS reserved names, I will not be able to edit (or modify or delete) files inside it directly. So my doubt is that, if the PC is infected with a worm (or virus or trojan), will it be able to infect the .exe files inside the folder since most of them just add extra scripts to the existing files. Thanks in advance

Dave
  • 25,513
Jack
  • 41

1 Answers1

2

Malware running in your user context can do virtually everything you can do. And you are able to access/modify/delete such a folder as well as its contents. All you need to do is prepend the absolute path with \\.\ (e.g. \\.\C:\Temp\con).