OK, so I'd like to make a part of a script that deletes a file called login.swf
typically, a couple of instances of it will exist after LoL patches and the path can vary, like so:
C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 1.79\deploy\mod\lgn\themes\loginRumbleSupergalaxy
and
C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 1.79\deploy\mod\lgn\themes\loginVelkoz
Also, the "0.0.1.79" can change depending on the patch, so it would need to be a wildcard.
I understand I need to use the fuction
FileDelete ( "filename" )
but am not sure how to handle multiple instances of the file as well as the varying path structure. Any help would be much appreciated.
typically, a couple of instances of it will exist after LoL patches and the path can vary, like so:
C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 1.79\deploy\mod\lgn\themes\loginRumbleSupergalaxy
and
C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 1.79\deploy\mod\lgn\themes\loginVelkoz
Also, the "0.0.1.79" can change depending on the patch, so it would need to be a wildcard.
I understand I need to use the fuction
FileDelete ( "filename" )
but am not sure how to handle multiple instances of the file as well as the varying path structure. Any help would be much appreciated.