"John John - MVP" <(E-Mail Removed)> wrote in message
news:%23YY3$(E-Mail Removed)
> The problem with that is that if you try to delete using S* wildcard
> you will or may have serious problems! For example, searching for S*
> will find folders like the System, System32, ServicePackFiles, and
> System Volume Information folders, to name only a few. Just run the
> following command and you will see what I mean:
>
> dir c:\s* /ad /s/b
>
> You could always run the above command and send the output to a text
> file then weed out the file and then run a batch file that uses the
> FOR command with your input file to delete the folders.
>
> John
>
> Vijay wrote:
>> I want to delete folders with command prompt, when i run command ,
>> it should be automatically deleted.
>>
>> location of the folder my be different,
>>
>> "Bob I" wrote:
>>
>>> You could use Windows Search For File and Folders, it accepts
>>> Wildcards ( find S* ) when it is done , Click File to sort them so
>>> the Folders are at the Top, Select them all and then delete them.
>>>
>>> Vijay wrote:
>>>
>>>> RMDIR S*
>>>>
>>>> option is not working , i think , RMDIR command does not support
>>>> wildcards, Please help me to search the answer,
>>>>
>>>>
>>>> "Elmo" wrote:
>>>>
>>>>
>>>>> Vijay wrote:
>>>>>
>>>>>> I want to remove folders which start with "s" characters; I want
>>>>>> to use wildcards to remove folders. Please tell me which
>>>>>> command I should use in command prompt. I am using XP sp2.
>>>>>> Folder location is c:\ (c drive)
>>>>> Type in RMDIR /? to see the required syntax. To remove those
>>>>> pesky folders, such as "System Volume Information" from the C:\
>>>>> root folder, consider this command:
>>>>>
>>>>> RMDIR S*
>>>>>
>>>>> Have your XP install CD and all backups nearby, of course.. there
>>>>> is no Undelete command in XP.
>>>>>
>>>>> --
>>>>> Joe =o)
Right. Without using a starting path, it could be pretty disastrous:
rmdir /? gives:
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories
in addition to the dire
ctory tree.
/Q Quiet mode, do not ask
C:\Documents and Settings\T Wayne>
|