Deleting Folders and subfolders and files

(imported topic written by Macideus91)

This seems like an easy task, but I am having apins and need some help.

Goal: Delete certain folders that would exist on WinXP and Win7 Machines

name of operating system contains “Win”

Now lets check relevance of those pesky folders we don’t want

Exists Folder “C:\randomfolder”

del C:\randomfolder

if the value is true then we want to delete this folder, all subfolders and files and we don’t want it to stop until “C:\randomfolder” doesn’t exist

This folder is strictly a folder we would have created not a system folder.

When I plug all this into a fixlet or task…it lets me run it but returns FAILED.

please inspire me with your wisdom o gracious ones

-Mike

(imported comment written by Macideus91)

Applicability

if name of operating system contains “Win” and EXISTS Folder “C:\saidfolder”

Success if evals to false

EXISTS Folder “C:\saidfolder”

ACTION

del C:\saidfolder

this is what I have been using in case the above appears unclear

(imported comment written by Macideus91)

Well just ignore everything…my co-worker just thought of an idea and we tried it and it looks promissing.

using rmdir option instead of del