DOCUMENT:Q78670 17-DEC-2000 [msdos] TITLE :Startup Directory Option Ignored in MS-DOS Shell PRODUCT :Microsoft Disk Operating System PROD/VER:MS-DOS:5.x,6.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft MS-DOS operating system versions 5.0, 5.0a, 6.0 ------------------------------------------------------------------------------- SUMMARY ======= In MS-DOS 5.0 and Shell, it is possible for the startup directory option to be ignored when a program item is started from the Active Task List. MORE INFORMATION ================ The startup directory option will be ignored in the following two situations: - The program item being started from the Active Task List was originally placed there as a result of a LOAD=ENABLED entry in the DOSSHELL.INI file. - The program item being started from the Active Task List was added to the Active Task List by holding down the SHIFT key, and double-clicking on the program item (or pressing SHIFT+ENTER). In the above cases, the effective startup directory will be the active directory at the time Shell was started. WORKAROUND ========== To work around this limitation, write a batch file for the application that first changes to the desired startup directory before starting. Then create a program item for the batch file, not the executable. (Note: In this case, the startup directory option is now unnecessary.) Example ------- To make a batch file to run Microsoft Word for MS-DOS, do the following: 1. Include the following lines in a batch file called WORD5.BAT: cd \word5 word 2. Make a program item for WORD5.BAT using the procedure described on pages 186-188 of the version 5.0 "Microsoft MS-DOS User's Guide and Reference." Additional query words: 5.00 5.00a 6.00 ====================================================================== Keywords : Technology : kbMSDOSSearch kbMSDOS600 kbMSDOS500 kbMSDOS500a Version : MS-DOS:5.x,6.0 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.