Page 1 of 1

Delete, Move, Copy with the pattern *.*

Posted: Fri Nov 08, 2019 11:33 am
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?

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

Posted: Sat Nov 09, 2019 12:36 pm
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/")

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

Posted: Thu Nov 14, 2019 5:44 pm
by Juan Carlos
Thank you Andreas for your help, yes it works and I added to my little tool iConecta.

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

Posted: Mon May 25, 2020 4:25 pm
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.