PDA

View Full Version : Function to conver single slash to double


Too_Tall_Crown_Victoria
07-20-2007, 01:44 PM
I hope this is easy for someone out there. I need a function to take a single slash path and convert it to double slash. For example:

C:\Program Files\MyApp\data

needs to be converted to:

C:\\Program Files\\MyApp\\data

I have tried using VBScript but have been unsucessfull.

Thanks

Tom

kinook
07-20-2007, 01:48 PM
VBScript:

[Replace("C:\Program Files\MyApp\data", "\", "\\")]

Too_Tall_Crown_Victoria
07-20-2007, 03:38 PM
Thanks, that was it.

Tom