14a1a9510SRong-En Fan/**************************************************************************** 2*e1865124SBaptiste Daroussin * Copyright 2020 Thomas E. Dickey * 3*e1865124SBaptiste Daroussin * Copyright 1998,2006 Free Software Foundation, Inc. * 44a1a9510SRong-En Fan * * 54a1a9510SRong-En Fan * Permission is hereby granted, free of charge, to any person obtaining a * 64a1a9510SRong-En Fan * copy of this software and associated documentation files (the * 74a1a9510SRong-En Fan * "Software"), to deal in the Software without restriction, including * 84a1a9510SRong-En Fan * without limitation the rights to use, copy, modify, merge, publish, * 94a1a9510SRong-En Fan * distribute, distribute with modifications, sublicense, and/or sell * 104a1a9510SRong-En Fan * copies of the Software, and to permit persons to whom the Software is * 114a1a9510SRong-En Fan * furnished to do so, subject to the following conditions: * 124a1a9510SRong-En Fan * * 134a1a9510SRong-En Fan * The above copyright notice and this permission notice shall be included * 144a1a9510SRong-En Fan * in all copies or substantial portions of the Software. * 154a1a9510SRong-En Fan * * 164a1a9510SRong-En Fan * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 174a1a9510SRong-En Fan * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 184a1a9510SRong-En Fan * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 194a1a9510SRong-En Fan * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 204a1a9510SRong-En Fan * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 214a1a9510SRong-En Fan * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 224a1a9510SRong-En Fan * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 234a1a9510SRong-En Fan * * 244a1a9510SRong-En Fan * Except as contained in this notice, the name(s) of the above copyright * 254a1a9510SRong-En Fan * holders shall not be used in advertising or otherwise to promote the * 264a1a9510SRong-En Fan * sale, use or other dealings in this Software without prior written * 274a1a9510SRong-En Fan * authorization. * 284a1a9510SRong-En Fan ****************************************************************************/ 294a1a9510SRong-En Fan 300e3d5408SPeter Wemm/* 31*e1865124SBaptiste Daroussin * $Id: cleantic.cmd,v 1.5 2020/02/02 23:34:34 tom Exp $ 320e3d5408SPeter Wemm * 330e3d5408SPeter Wemm * Author: Juan Jose Garcia Ripoll <worm@arrakis.es>. 340e3d5408SPeter Wemm * Webpage: http://www.arrakis.es/~worm/ 350e3d5408SPeter Wemm */ 360e3d5408SPeter Wemmparse arg dir 370e3d5408SPeter Wemm 380e3d5408SPeter Wemmpause 390e3d5408SPeter Wemmdir = translate(dir,'\','/'); 400e3d5408SPeter Wemmletters = '0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z' 410e3d5408SPeter Wemm 420e3d5408SPeter Wemmif dir = '' then 430e3d5408SPeter Wemm dir = '.' 440e3d5408SPeter Wemm'echo Cleaning 'dir 450e3d5408SPeter Wemm'for %%1 in ('letters') do @if not exist 'dir'\%%1\* (echo Cleaning ...\%%1 & rd %%1 2>NUL)' 46