


PC Access had an error while trying operate on a file or a directory. For file operations to succeed, several conditions must hold. If you need to read a file, the file must exist. If you need to write to an existing a file, you must have write permission for that file, and to the drive and directory where you want to write it.
The most common file errors are:
· Access Denied: PC Access tried to open a file for a particular operation, but the file attributes do not permit this operation. For example, the file may have the read-only attribute, and PC Access tried to open the file for writing. Type HELP ATTRIB at your DOS prompt for more information on file attributes. Be aware that you may be unable to write to any files on certain types of drives, such as CDROMs and read-only network drives. If you are trying to read or write a file on a network drive and you do not have permission, see your network administrator.
· No such file or directory: PC Access tried either to open a non-existent file for reading, or change to a non-existent directory. This can happen in two distinct ways:
¨ You typed the name of a non-existent file in the Name field of file selector window for opening a file. Solution: instead of typing a file name, select an existing file name from the file name list in the file selector window.
¨ PC Access tried to open a file on its own accord. When PC Access believes a file should exist and that file does not exist, you may need to re-create the file. Check the instructions for a missing file error, and if they do not seem to apply to your current problem, follow the instructions for an Internal Error.
· Too many open: PC Access ran out of file handles. This can be a problem if you are running other Windows applications that open many files simultaneously. Set your FILES statement in your CONFIG.SYS file to at least 70, and higher if you plan to run several applications at the same time.
Here are some tips for reducing the frequency of file errors:
· Run SCANDISK (with a full surface scan!) regularly to detect and repair file system damage. This is especially important if you have recently suffered a program crash or GP fault, Windows has locked up, you have had a power failure, or you have turned off your computer while Windows was still running.
· Check the free space on your hard disk regularly. If your free space drops below 5 MB on the disk where you installed PC Access, you are in danger of running out of space.
· Be sure your Windows temporary directory exists, and you have plenty of free space (>10 MB) on the drive it occupies. You can identify your temporary directory by looking for
statements like:
SET TEMP=C:\WINDOWS\TEMP
in your CONFIG.SYS file. You may also open an MS-DOS prompt and type the SET command by itself.
· Always exit Windows normally before turning off your computer. In Windows 3.1x, select File | Exit Windows from the Program Manager; in Windows 95 and NT, select Start | Shut Down from the Task Bar.
· Install a quality virus-scanning program and check your computer for viruses regularly.
· Purchase an uninterruptible power supply to protect your computer from brownouts and blackouts.
The following table lists the file errors PC Access (and other applications) may report. If you can't determine the cause of a file error, follow the instructions for an Internal Error.
| Error Mnemonic | Error Message |
| E2BIG | Bad environ |
| EACCES | Access denied |
| EACCES | Bad access |
| EACCES | Is current dir |
| EBADF | Bad handle |
| EFAULT | Reserved |
| EINVAL | Bad data |
| EINVAL | Bad function |
| EMFILE | Too many open |
| ENOENT | No such file or directory |
| ENOEXEC | Bad format |
| ENOMEM | Mcb destroyed |
| ENOMEM | Out of memory |
| ENOMEM | Bad block |
| EXDEV | Bad drive |
| EXDEV | Not same device |


