View Full Version : Cannot save Visual Basic files in windows 7

29-12-2009, 09:04 AM
I recently purchased a new computer with Windows 7'
My main interest is VB6 programming and have copied all my original files to the new machine.The VB6 programs all work correctly except I cannot save anyof them whether they have been edited or not.

29-12-2009, 12:03 PM
Is it 32bit or 64bit Win7?

29-12-2009, 02:04 PM
Are you trying to save to the program directory? Both Vista and Win 7 can have issues with that.

29-12-2009, 03:01 PM
I have 32 bit version of Windows 7.
As in XP I would like to save the edited code in the same place it came from.
Sorry for the lack of expertise in this field.

29-12-2009, 04:51 PM
As in XP I would like to save the edited code in the same place it came from.

I have had issues with a couple of older programs that try to write to the directory where the program is installed. This is usually C:\Program Files\Program Name. Win 7 and Vista try and protect those files I presume from Viruses. If your data is stored there that may be causing your problem. You could try saving the data into a data directory like Documents and see if that fixes it

As a work around to make my programs run correctly I created a new directory C:\Programs\Program Name and installed to that. Those 2 programs work correctly now and Win 7 does not stop them from making changes.

30-12-2009, 08:15 AM
Thank you McRuff. Tried that but still get the 'Path/File access error' message with the
path the same as it used to access the program.

30-12-2009, 08:51 AM
This might help you