Announcement

Collapse
No announcement yet.

File can not be deleted via a command!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File can not be deleted via a command!

    Hello, I have a problem and hope you can help me!

    OS: Windows 7 64-bit
    Windows \ System32 \ Drivers \ multikey.sys

    File.Delete (SessionVar.Expand ("%SystemFolder%\\drivers\\multikey.sys"), false, false, false, nil);

    Note:
    The file will be deleted if this would be in the syswow64 folder but this is not the case!

    How can delete the file

  • #2
    You can do it like this:

    File.Delete ( SessionVar.Expand ("%WindowsFolder%\\Sysnative\\drivers\\multikey.sy s"), false, false, false, nil);

    Note: for some reason, when I post this line of code in the forum it keeps adding a space in the middle of multikey.sys, make sure you remove that space!

    Comment

    Working...
    X