When flash sees \ i want it to make it \\

descriptive title…
how would i make the string c:\folder1\folder2\file.txt become c:\folder1\folder2\file.txt

something with spliting a string but dont have the knowledge to do it. Tried for about 20min on my own with this problem but kinda stuck.