Delete, Move, Copy with the pattern *.*
- Juan Carlos
- Posts: 889
- Joined: Mon Sep 06, 2010 1:02 pm
Delete, Move, Copy with the pattern *.*
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?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Delete, Move, Copy with the pattern *.*
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/")
- Juan Carlos
- Posts: 889
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Delete, Move, Copy with the pattern *.*
Thank you Andreas for your help, yes it works and I added to my little tool iConecta.
- Juan Carlos
- Posts: 889
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Delete, Move, Copy with the pattern *.*
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.
pattern$="*.Log"
DeleteFile(pattern$)
even this:
DeleteFile("dh1:", pattern$) but the solution is worst.