Access to the path "c:\\blablabla" is denied.. Programming Software Development by akkbkht ….Hash Dim buff As New StringBuilder Dim hashByte As Byte For Each hashByte In hash buff.Append(String.Format("{… buff As StringBuilder = New StringBuilder Dim hashByte As Byte For Each hashByte In hash buff.Append(String.Format("{… MD5 Checksum Programming Software Development by onlinessp …; StringBuilder md5buff = new StringBuilder(); //StringBuilder buff = new StringBuilder(); foreach (byte hashByte in /*hash*/md5hash) { // buff.Append(String.Format("{0:X1… Problem With Treeview Scan (MD5) Programming Software Development by Draco1985 …= New StringBuilder() 13 Dim hashByte As Byte 14 For Each hashByte In hash 15 buff.Append(…String.Format("{0:X2}", hashByte)) 16 Next 17 If scanbox.Text.Contains(buff… database table security with varchar column Programming Software Development by sanjeewa.abeywardana …data stored in the table can be made by storing Hashbyte data in a column. So anyone comes and change…1. this is my table and trying to insert hashbyte data to hashcol column from csharp application HOW TO GENERATE… HASHBYTE VALUE FROM CSHARP ? I have used this public static … Is there a way to create an anti-virus that has working Real Time protect? Programming Software Development by Alphex_1 …Hash Dim buff As New StringBuilder Dim hashByte As Byte For Each hashByte In hash buff.Append(String.Format("…;{0:X2}", hashByte)) Next f.Close() If scanbox.Text.Contains(buff… Avoid form lag solutions ? Programming Software Development by Andrew_63 …buff As StringBuilder = New StringBuilder Dim hashByte As Byte For Each hashByte In hash buff.Append(String.Format("…;{0:X2}", hashByte)) Next If scanbox.Text.Contains(buff.ToString) Then… Re: Reading A File Signature Programming Software Development by akkbkht … buff As StringBuilder = New StringBuilder Dim hashByte As Byte For Each hashByte In hash buff.Append(String.Format("{…0:X2}", hashByte)) Next If scanbox.Text.Contains(buff.ToString) Then… Re: Compare one file to each file in the folder Programming Software Development by GeekByChoiCe … Byte() = md5.Hash Dim buff As New StringBuilder For Each hashByte As Byte In hash buff.Append(String.Format("{0…:X2}", hashByte)) Next f.Close() Return buff.ToString.ToLower End Function [/CODE… Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by Reverend Jim As far as I know you can't override that behaviour from within the application. Access to system folders is restricted to protect your system. If it could be overridden from with the application with some code then the system would not be aable to protect itself from malicious code. There are ways to run an application with elevated priviledges. … Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by adam_k Jim is right, but even as administrator you can't access some pretty hiden folders as C:\System Volume Information You need your app to work with SYSTEM priviledges, but I don't think my AV runs under these, so perhaps there is another way (some system function perhaps?) Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by akkbkht YA. that is the main issue i am facing when scannning some of system folders. I don't know how to remove these securities. I tried to minimize UAC from control panel but that is not working and not the solution.... Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by adam_k This might be just rubish, but what if you created a service running under system? Again I never tried this, but I don't see a reason why this wouldn't work. Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by akkbkht What the hell is this, in order to be a good programmer, we must know a lot about windows,,,, shit man.... now I am stuck in the middle of my project due to these securities..lol Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by adam_k You can be a good programmer without knowing windows. Unfortunatelly you'll have to know Unix/Linux/MacOS/whatever. Since you are interacting with the OS you have to know stuff about it. Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by Xcelled194 Best solution would be to edit the App Manifest on Application TAb of the project properties. Set the requestedExececutionLevel to requireAdministrator Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by adam_k Didn't we discuss that admin rights won't cut it? Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by brickman619 Hello. I am working on an anti-virus in VB.Net. I have been having the problem that when i run a full scan, it gives me an error saying "Access to the path "C:\Documents and Settings" is denied.". Please help. If you need my code just ask. Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by Damien_1 your file is readonly. do System.IO.File.SetAttributes(path, IO.FileAttributes.Normal) Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by Mike Bishop have you tried turning UAC (User Access Control) off? Start > Search > UAC Re: Access to the path "c:\\blablabla" is denied.. Programming Software Development by deletedaccount The code provided above is a basic Anti-Virus made in VB.NET. He is trying to scan through the MD5 of applications and compare them to a database file. This is correct to making a Anti-Virus, but is MD5 the best option? Yes, and no. Check the Windows API. May be something in there for accessing permission. Re: MD5 Checksum Programming Software Development by Teme64 [QUOTE]I am going to write a program which can calculate MD5 of a file even the file is in use[/QUOTE] if a file "is in use" means that someone has an exclusive lock to the file i.e. no one else can access the file until the lock's owner releases the lock. This is usually the case when someone writes to the file. If someone writes to … Re: MD5 Checksum Programming Software Development by BatsIhor Here is code example on C# for getting md5 checksum for folder of files [URL="http://batsihor.blogspot.com/2011/08/md5.html"]http://batsihor.blogspot.com/2011/08/md5.html[/URL] it's on Ukrainian but code on C# ) so you should understand everything.. Re: database table security with varchar column Programming Software Development by Ketsuekiame Ok so the only way this would really provide security is if you used some unknown password (referred to as salt) to generate the hashes. Otherwise, anyone would be able to modify the table and then generate the hash to make it look like it hadn't been tampered with. Using a salt could be as simple as hardcoding a string into your application and … Re: Is there a way to create an anti-virus that has working Real Time protect? Programming Software Development by rproffitt While I think you are at least trying you left out all the other exploits in the wild. That is this would not catch web sites that mine coins and well that list of things that are considered exploits don't always involve files. Maybe you should consider open source next time? https://windowsreport.com/open-source-antivirus/ Re: Avoid form lag solutions ? Programming Software Development by rproffitt I consider this to be two discussions. 1. Speed. As in "How do I speed up my ______?" As in functional areas like that text read and hash creation. 2. Crashing. That is where YOU crash the app while running it from Visual Studio and find which line failed and then think about why. You have the onus here as you have your Visual Studio… Re: Avoid form lag solutions ? Programming Software Development by Andrew_63 Is there a simplier way to speed up the process of reading the large text file containing the hashes ? If yes, it might SOLVE the main issue. Re: Avoid form lag solutions ? Programming Software Development by rproffitt Let me write that your code above is incomplete but even if it was YOU need to tell me about your design. To me and I'm guessing since I only see the code above I think I see your code read the text file everytime you scan a file. That would be a huge overhead. In psuedo and again you must tell the forum your design to avoid reverse … Re: Avoid form lag solutions ? Programming Software Development by Andrew_63 Hello. I've uploaded my project source code to Mediafire for you to see it and review it: [Click Here](https://www.mediafire.com/file/37xe8707fdcppyx/Antivirus-master.zip/file) Re: Avoid form lag solutions ? Programming Software Development by Andrew_63 Ok, then how do I speed up the reading of the text file ? Is there a faster way to read the file from what I've coded ? Re: Avoid form lag solutions ? Programming Software Development by rproffitt I noted that it looked to me you read the text file more than one time. Give me a quick overview of how you think your code works. Since you only need to read the text file one time, speed should't be that bad. UNLESS you do it more than once. My method for a commercial work I published and used by thousands (service industry) was to only …