C
C#6mo ago
Komitet

✅ Access to the path 'C:\Users\Administarto\AppData\Local\Application Data' is denied

Hello I want to create fivem cheat scanner and I added to source file location but I have this serror
35 Replies
Komitet
KomitetOP6mo ago
I'm running with admin and etc but nothing lang: c#
List<string> stringsfileNameToFind = new List<string>()
{
"d3d10.dll",
"d3d10(1).dll"
};

string informacoesEncontradas = "";
string directoryPath = @"C:\\Users\\";
string rootPath = Path.GetPathRoot(directoryPath);

if (File.Exists("C:\\explorer.txt"))
{
string contents = File.ReadAllText("C:\\explorer.txt");

List<string> stringsEncontradas = new List<string>(); // This list is empty, so it won't have any effect on the subsequent logic

string nomesPersonalizadosConcatenados = "";
foreach (string stringEncontrada in stringsEncontradas) // Since stringsEncontradas is empty, this loop won't execute
{
string nomePersonalizado = nomesPersonalizados.ContainsKey(stringEncontrada) ? nomesPersonalizados[stringEncontrada] : stringEncontrada; // The 'nomesPersonalizados' dictionary is not defined in the provided code
nomesPersonalizadosConcatenados += nomePersonalizado + ", ";
}

foreach (string fileNameToFind in stringsfileNameToFind)
{
string[] directories = Directory.GetDirectories(directoryPath);
string[] foundFiles = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories);
if (foundFiles.Length > 0)
{
informacoesEncontradas += $"File '{fileNameToFind}' found at:\n";
foreach (string filePath in foundFiles)
{
informacoesEncontradas += filePath + "\n";
}
}
List<string> stringsfileNameToFind = new List<string>()
{
"d3d10.dll",
"d3d10(1).dll"
};

string informacoesEncontradas = "";
string directoryPath = @"C:\\Users\\";
string rootPath = Path.GetPathRoot(directoryPath);

if (File.Exists("C:\\explorer.txt"))
{
string contents = File.ReadAllText("C:\\explorer.txt");

List<string> stringsEncontradas = new List<string>(); // This list is empty, so it won't have any effect on the subsequent logic

string nomesPersonalizadosConcatenados = "";
foreach (string stringEncontrada in stringsEncontradas) // Since stringsEncontradas is empty, this loop won't execute
{
string nomePersonalizado = nomesPersonalizados.ContainsKey(stringEncontrada) ? nomesPersonalizados[stringEncontrada] : stringEncontrada; // The 'nomesPersonalizados' dictionary is not defined in the provided code
nomesPersonalizadosConcatenados += nomePersonalizado + ", ";
}

foreach (string fileNameToFind in stringsfileNameToFind)
{
string[] directories = Directory.GetDirectories(directoryPath);
string[] foundFiles = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories);
if (foundFiles.Length > 0)
{
informacoesEncontradas += $"File '{fileNameToFind}' found at:\n";
foreach (string filePath in foundFiles)
{
informacoesEncontradas += filePath + "\n";
}
}
Komitet
KomitetOP6mo ago
No description
Buddy
Buddy6mo ago
What is a cheat scanner?
Komitet
KomitetOP6mo ago
the scanner is for fivem searching for sus files, cheats strings etc
Buddy
Buddy6mo ago
So an anti-cheat of sorts?
Komitet
KomitetOP6mo ago
yea but scanning computer
Komitet
KomitetOP6mo ago
example
No description
tera
tera6mo ago
probably need admin permissions to read those files
Komitet
KomitetOP6mo ago
I have admin perms
tera
tera6mo ago
and program run as admin?
Komitet
KomitetOP6mo ago
yea
Komitet
KomitetOP6mo ago
fixed
No description
Komitet
KomitetOP6mo ago
😮 but lookin in one folder
Komitet
KomitetOP6mo ago
No description
Komitet
KomitetOP6mo ago
this not working only Is it possible not to scan this folder?
Buddy
Buddy6mo ago
Do you expect users to install that?
Komitet
KomitetOP6mo ago
yea
Buddy
Buddy6mo ago
admin is required modify app.manifest
Komitet
KomitetOP6mo ago
and what I must edit
Komitet
KomitetOP6mo ago
app config?
No description
Buddy
Buddy6mo ago
no.
Buddy
Buddy6mo ago
Application manifests - Win32 apps
An application manifest is an XML file that describes and identifies the shared and private side-by-side assemblies that an application should bind to at run time.
Komitet
KomitetOP6mo ago
I dont have app manifest
Komitet
KomitetOP6mo ago
No description
Komitet
KomitetOP6mo ago
ok I add not working :/
Buddy
Buddy6mo ago
into your csproj, add <ApplicationManifest>app.manifest</ApplicationManifest> if the app.manifest file exists
Komitet
KomitetOP6mo ago
No description
Komitet
KomitetOP6mo ago
No description
Komitet
KomitetOP6mo ago
wth
Buddy
Buddy6mo ago
Don't blindly copy paste you should also have a template for app.manifest
Komitet
KomitetOP6mo ago
I have wait
Komitet
KomitetOP6mo ago
No description
No description
Buddy
Buddy6mo ago
use requireAdministrator for level highestAvailable is only equivalent to requireAdministrator if the current user is an Administrator note $newproject
MODiX
MODiX6mo ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Komitet
KomitetOP6mo ago
not work
Want results from more Discord servers?
Add your server