'Program HOME '**************************************************************************** 'This program writes the current directory along with the cd command to 'a file home.bat. A batch file can return to the current directory after 'it executes by calling home.bat. ' 'Zachary Wolf '5/28/94 '**************************************************************************** 'Open the .bat file filenum% = FREEFILE OPEN "home.bat" FOR OUTPUT AS #filenum% 'Write the cd command and the current directory to the .bat file PRINT #filenum%, "cd " + CURDIR$ 'Close the .bat file CLOSE #filenum% END