Delete, Move, Copy with the pattern *.*

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
Juan Carlos
Posts: 884
Joined: Mon Sep 06, 2010 1:02 pm

Delete, Move, Copy with the pattern *.*

Post by Juan Carlos »

Will be possible add the option for the commands Delete, Move, Copy, the pattern *.* for example delete all files from a drawer instead of now one to one?
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Delete, Move, Copy with the pattern *.*

Post by airsoftsoftwair »

This is already possible. As in AmigaDOS, the slash after the directory name tells DeleteFile() to delete all files and subdirectories but keep the root directory, e.g.

Code: Select all

DeleteFile("dh0:testdir/")
User avatar
Juan Carlos
Posts: 884
Joined: Mon Sep 06, 2010 1:02 pm

Re: Delete, Move, Copy with the pattern *.*

Post by Juan Carlos »

Thank you Andreas for your help, yes it works and I added to my little tool iConecta.
User avatar
Juan Carlos
Posts: 884
Joined: Mon Sep 06, 2010 1:02 pm

Re: Delete, Move, Copy with the pattern *.*

Post by Juan Carlos »

I try to delete files with a pattern but I don't get the correct paramater, I tryed this:
pattern$="*.Log"
DeleteFile(pattern$)
even this:
DeleteFile("dh1:", pattern$) but the solution is worst.
Post Reply