Forum Moderators: coopster
I am looking for a script to detect when these files are recieved by FTP and rename the file format to read 2672952789X101.wav(also making sure to rename with the correct phone extension in the filename, X101, X102, X103, etc.) and put the file from ROOT to AUDIO directory. Also making sure to remove original file from ROOT.
I am looking for a script to detect when these files are recieved by FTP
If the file name format is always the same, you can do the following to get it renamed
> loop through the filenames
> Get filenames with two "-" in them.
> explode the file name
> rename the file with explode['1']
Habtom