Page 1 of 1

Using wildcards for CopyFile and DeleFile

Posted: Fri Jun 05, 2020 10:50 am
by Marc56us
(following discussion about using wildcards in Copy/Del :arrow: viewtopic.php?f=13&t=75439)

It might be interesting to add the possibility to use wildcards for the Copy and Delete file commands.
(At least " * " optionnaly ' ? ' but best of all and modern will be "regular expressions")

This should be put as an option in existing commands or as a new feature to ensure backward compatibility and to avoid possible errors due to systems that accept '*' and '?' in filenames.

CopyFile

Code: Select all

CopyFile(SourceFilename$, DestinationFilename$ [, Flags])

#PB_No_Overwrite     	(New)
#PB_Allow_Wildcards 	(New) 
DeleteFile

Code: Select all

DeleteFile(Filename$ [, Flags])

#PB_FileSystem_Force 	(Exist)
#PB_Allow_Wildcards  	(New)
:idea: :?: