Search found 2 matches

by romasasss
29 Nov 2013 03:02
Forum: DOS Batch Forum
Topic: Show if folder exist and delete it
Replies: 4
Views: 4343

Re: Show if folder exist and delete it

AiroNG wrote:Something like this?

Code: Select all

@echo off
if exists "D:\UnwantedFolder" ( del /q "D:\UnwantedFolder" )



Yes something like this. but i am getting message that folder was unexpected at this time
by romasasss
29 Nov 2013 02:43
Forum: DOS Batch Forum
Topic: Show if folder exist and delete it
Replies: 4
Views: 4343

Show if folder exist and delete it

Hello. i am new at batch so i need some help with script which check if there is a folder in my selected directory and if there is that folder then delete it.