0mWindyBug / FileHide

filter driver to hide files and directories
MIT License
12 stars 4 forks source link

"The system cannot find the file specified." - LOADING ERROR. #2

Open U65535F opened 5 months ago

U65535F commented 5 months ago

image I have the error while starting the driver and that is The system cannot find the file specified. in OSR Driver Loader. I believe it's not a problem with loader because when I tried loading it with sc start, it produces the same error. The driver is compiled successfully, no modifications of source code have been done except I fixed the header includes and I changed BOOLEAN matched, search; to BOOLEAN search; since the matched variable is not used anywhere in the code (hide.cpp) so It throws a warning saying unreferenced local variable. Plus I haven't modified main.h and the Hidden.sys in C:\Program Files\ToHide as shown in the image in your README. How can I fix this error and load the driver?

U65535F commented 5 months ago

If you think loading the driver directly from Program Files is a problem, then I've tried loading it from Release directory. image Still the same error. P.S: sc.exe result: image

0mWindyBug commented 5 months ago

have you installed the driver with the .inf file?

U65535F commented 5 months ago

Sorry I didn't do that as it wasn't mentioned. Anyways here's the errors when I added the INF and compiled the driver: image Also to hide the files from other paths (other than Program Files), do we have to specify the path of the parent directory in TARGET_FOLDER? There is a 20 character size limit in variables that copy TARGET_FOLDER.

U65535F commented 5 months ago

Sorry I didn't do that as it wasn't mentioned. Anyways here's the errors when I added the INF and compiled the driver: image Also to hide the files from other paths (other than Program Files), do we have to specify the path of the parent directory in TARGET_FOLDER? There is a 20 character size limit in variables that copy TARGET_FOLDER.

Help. I've tried changing [DefaultInstall] to [DefaultInstall.NTAMD64] and [DefaultUninstall] to [DefaultUninstall.NTAMD64]. image Fixed by adding LegacyUninstall = 1 to [DefaultUninstall.NTamd64]. It fixed all the errors and I had a few warnings left to fix: image

FYI: I didn't add the current source code path to include path so all the user-defined includes like #include <main.h> would be invalid, so I modified them to use double quotes instead of angled brackets like #include "main.h".

U65535F commented 5 months ago

..??

U65535F commented 5 months ago

I'll keep this issue open for people who encounter this in future.....