DialogBox("What shell would you like to run?","temp.wbd")
if Shel == 1 then IniWritePvt("boot","shell","ndw.exe","system.ini")
if Shel == 2 then IniWritePvt("boot","shell","progman.exe","system.ini")
if Shel == 3 then IniWritePvt("boot","shell","winfile.exe","system.ini")
if Shel == 4 then IniWritePvt("boot","shell","msdos.exe","system.ini")
if IniReadPvt("boot","shell","","system.ini") == CurrShell then Exit
y=AskYesNo("Quit Windows","You must quit windows and restart for your currently chosen shell to load, do you wish to exit windows now?")
if y == @YES then EndSession()
ErrorMode(@OFF)
FileDelete("temp.wbd")
exit
:NoFile
Message ("Error","The shell.wbd template file is not present. Copy the file from your original disks into your NDW directory. The file must be located in your NDW directory!")