Hello Ed,

> I am trying to delete all files in a folder as well as in subfolders.
> It appears that the file plugin can do this but I am getting stuck on
> the syntax. I have tried:

> File.AllFiles("D:\\My Music\\Playlists","file.delete(*.*)","1")

> But, that give me an error message and doesn't delete the files.

You didn't tell us what the error message said.

> How can I delete all the files in a folder and it's subfolders.
> If possible, I'd like to delete the subfolders as well.

This works here:
File.AllFiles(?"D:\My Music\Playlists","file.delete(_file_)",3)

Notes:
I used ?"D:\etc" instead of "D:\\etc"
so it doesn't depend upon \ being set as your escape character.

File.txt in your plugins folder advises us to use _file_ instead of *.*

Using 3 instead of 1 makes the command be run on files and folders
in the path and all of its subfolders.



Attention: PowerPro's Web site has moved: http://www.ppro.org



SPONSORED LINKS
Computer monitoring software Power pro Computer and internet software
Free computer monitoring software


YAHOO! GROUPS LINKS




Reply via email to