The information in this article applies to:
SUMMARY
MS-DOS, Microsoft Windows, and Windows-based applications use
SHARE.EXE to provide a file locking mechanism so that Windows-based
tasks can communicate with each other. The tasks use SHARE.EXE to sort
out file read/write conflicts. Therefore, it is important that you
load SHARE.EXE before starting Windows. Without SHARE.EXE loaded, you
may experience data corruption in applications.
MORE INFORMATION
MS-DOS uses SHARE.EXE to lock files as requested by applications.
SHARE.EXE controls updates and prevents data corruption in files.
Microsoft Windows for WorkgroupsThe only time you do not have to use SHARE.EXE is when you run Microsoft Windows for Workgroups in Enhanced mode. Microsoft Windows for Workgroups in Enhanced mode loads and uses a file-sharing program called VSHARE.386, which is a replacement for SHARE.EXE. There is an entry for VSHARE.386 in the SYSTEM.INI file.If you plan on running Windows for Workgroups exclusively in Enhanced mode and do not run other applications that require SHARE.EXE, you can save approximately 5K of conventional memory by not loading SHARE.EXE. To do this, remove the SHARE.EXE line from your AUTOEXEC.BAT file and restart your computer. SHARE.EXE is likely to be in your AUTOEXEC.BAT file because during the Microsoft Access installation process, the SETUP.EXE program automatically inserts the following MS-DOS command in your AUTOEXEC.BAT file:
If SHARE.EXE is already present before running Microsoft Windows for Workgroups in Enhanced mode, VSHARE.386 loads in addition to SHARE.EXE, temporarily disabling SHARE.EXE. Then VSHARE.386 takes over file sharing tasks until you exit Microsoft Windows for Workgroups. After you exit Windows for Workgroups, VSHARE.386 passes file-sharing control back to SHARE.EXE for use by MS-DOS applications that require it. Microsoft Access runs correctly with either SHARE.EXE or VSHARE.386, but SHARE.EXE limits the number of available locks to the number specified when SHARE.EXE was loaded. The /L parameter specifies the number of share locks; the default is 20. VSHARE.386, on the other hand, dynamically allocates the number of locks available based on the demand for locks. The number of locks available is especially important if the computer running Microsoft Windows for Workgroups acts as a server in a client-server environment. Additional query words: WinIss
Keywords : kbenv |
Last Reviewed: March 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |