deadonarrival Posted June 21, 2007 Share Posted June 21, 2007 Hey, I'm a newbie to visual basic - although I know a fair bit about programming in general. This is the only coding forum I use regularly, so figured I'd post here first in case anyone knows I've made a small program using VB, but when anyone else tries to run it they get the following error To help protect your computer, Windows has blocked access to this file. It's not a problem on my own PC - but I dont have windows firewall (on account of the word windows in it) and I don't have to unzip it... these are two of the things I've seen mentioned relating to this problem, but for once google let me down Does anyone know what the problem is, and how I can get around it? Is there something I'm doing or not doing in VB (vb6, not vb.net) which is causing this error? Thanks ~DOA Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/ Share on other sites More sharing options...
trq Posted June 21, 2007 Share Posted June 21, 2007 What exactly are you doing when this message appears? Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-279605 Share on other sites More sharing options...
deadonarrival Posted June 21, 2007 Author Share Posted June 21, 2007 Its when someone else tries to use my file. I've partially solved the problem now. The only other thing is that I need to be able to move a dll to the c:\windows\system32 folder, can this be done using a batch file? I need it to move a file from the same folder as the .bat to the above folder Any help appreciated Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-279608 Share on other sites More sharing options...
trq Posted June 21, 2007 Share Posted June 21, 2007 Sorry, I don't actually use windows so I'm not real sure. Isn't there some sort of package manager / installer? Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-279624 Share on other sites More sharing options...
Salis Posted June 21, 2007 Share Posted June 21, 2007 You'll need to know the location of the bat file but this is it: Example move c:\Users\SomeUser\Desktop\FileToMove.File %windir%\system32\ move [File To Move] [File Moved Here] Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-279631 Share on other sites More sharing options...
ober Posted June 22, 2007 Share Posted June 22, 2007 When the other person gets it, have them right-click on the exe and go to properties. Sometimes Windows puts a "block" on certain files. There is probably an "unblock" button in the properties window of the exe. Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-280074 Share on other sites More sharing options...
Salis Posted June 22, 2007 Share Posted June 22, 2007 You also have to remember that Windows is paranoid too. If it's Windows XP Pro, set up a permission for that program and "Run As Administrator" if Windows XP Home right click -> "Run As Administrator". Same goes for Windows Vista and as for Windows ME or anything older..... upgrade... Usually if you have some code in the program that resembles a WORM or Virus then Windows will tend to block it, (if security settings/programs are enabled) Quote Link to comment https://forums.phpfreaks.com/topic/56614-to-help-protect-your-computer-windows-has-blocked-access-to-this-file-vb/#findComment-280124 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.