Page 1 of 1

how to remove folder

Posted: 10 Aug 2010 09:51
by santhosh
anyone plz suggest

a folder is created its name with a variable.

how to delete that folder using that variable

example:
sat_%date% is a folder name

Re: how to remove folder

Posted: 10 Aug 2010 11:53
by jeb
Hi santhosh,

if you know the content it should be easy

Code: Select all

mkdir sat_%date%
... do some stuff here
rmdir sat_%date%


But it will fail if your date has a format like "10/08/2010", the "/" is not allowed as (directory-)name.