:: Listing 4. Code That Uses the Exit Command If Exist C:\fred.txt Goto :Delthemc If Exist D:\fred.txt Goto :Delthemd :Delthemc Del C:\fred.txt Exit :Delthemd Del D:\fred.txt Exit