IF not exist del a folder?

July 14, 2010 at 07:48:16
Specs: Windows Vista
Hello everyone.
Is there a way to use the If not exist command to del a folder if it doesnt have a .pst file in a folder. This is what im trying to do. I have a script that mkdir I:\pst and then searches for *.pst on a users profile and copies them over to that I:\pst folder. Now if it doesnt find any .pst files can I use the IF not exist command to del the I:\pst folder I just created?

See More: IF not exist del a folder?

Report •


#1
July 14, 2010 at 08:52:29
can I use the IF not exist command to del the I:\pst folder I just created?
Yes, you can.

Report •

#2
July 14, 2010 at 11:58:44
R2 is my hero.

If there's no file to copy just don't make the folder.


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions


Ask Question