Home > Back-end >  Access to the system directory under Windows 7 without permission
Access to the system directory under Windows 7 without permission

Time:09-29

Windows 7 X64 environment, XE2 query whether there is a file

If fileexists (' C: \ Windows \ System32 \ drivers \ kx sys') then
Memo1. Lines. The Add (' the driver file exists) else
Memo1. Lines. The Add (' driver file does not exist!!!!!! ')

This file is certainly exist, but always return the result does not exist,
Right to the administrator to run, too, so add the manifest

CodePudding user response:

 
If fileexists (' C: \ Windows \ Sysnative \ drivers \ ks sys') then
Memo1. Lines. The Add (' the driver file exists) else
Memo1. Lines. The Add (' driver file does not exist!!!!!! ')



So that will do!

CodePudding user response:

CodePudding user response:

Windows 7 doing permissions problem is really big

CodePudding user response:

With a TFileStream. LoadFromFile loading the file path, look to whether complains
  • Related