What purpose of Pattern$ in DeleteDirectory()?
Posted: Tue Apr 19, 2022 3:19 am
hi
DeleteDirectory("C:\test\","*.bat",#PB_FileSystem_Force)
DeleteDirectory("C:\test\","",#PB_FileSystem_Force)
but they delete "test" dir in both case, so what purpose of Pattern$ in DeleteDirectory()?
thanks
follow the help, two commands are different?DeleteDirectory()
Syntax
Result = DeleteDirectory(Directory$, Pattern$ [, Mode])
Pattern$ A pattern for deleting files within the directory. For example: "*.*" will delete any files in the directory. "*.exe" will delete only the .exe files. By default, a null Pattern$ ("") will delete all the files.
DeleteDirectory("C:\test\","*.bat",#PB_FileSystem_Force)
DeleteDirectory("C:\test\","",#PB_FileSystem_Force)
but they delete "test" dir in both case, so what purpose of Pattern$ in DeleteDirectory()?
thanks