Jump to content

To help protect your computer, Windows has blocked access to this file. (VB)


deadonarrival

Recommended Posts

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.