Hi All , I want to create a batch file , which do the following 1. first get the current working directory 2. delete all the contents(files, directories ,sub directories) of the current working directory by the way i have tested the following code but it does not work for me D:\test>for / d% i in (s *.*) DO del% i / Q / S / was unexpected at this time. D:\test>for / d% i in (s *.*) DO rd% i / was unexpected at this time. D:\test> Could you plz help me ? BTW I am using XP , and I want to apply the batch to XP , Vista , Win 7