Create illegal folders
Hello
in Visual Basic 6.0 by mkdir function we could create illegal folders like this:
mkdir "\\.\C:\CON"
I used this method to create a program that protect usb drive against some viruses
mkdir "I:\AUTORUN.INF"
mkdir "\\.\I:\AUTORUN.INF\CON"
then autorun.inf folder can't be removed
I'm trying to write this code using C#, but some available functions like Directory.CreateFolder("\\.\I:\CON"); does not work and throws an exception
how can i get help?
Last edited by irProject; December 7th, 2009 at 03:18 AM..
|