Delete, Move, Copy with the pattern *.*
- Juan Carlos
- Posts: 524
- Joined: Mon Sep 06, 2010 1:02 pm
- Contact:
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: 3218
- 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: 524
- Joined: Mon Sep 06, 2010 1:02 pm
- Contact:
Re: Delete, Move, Copy with the pattern *.*
Thank you Andreas for your help, yes it works and I added to my little tool iConecta.