Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-20-2007, 01:44 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-15-2003
Posts: 44
Function to conver single slash to double

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
Reply With Quote
  #2  
Old 07-20-2007, 01:48 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
VBScript:

[Replace("C:\Program Files\MyApp\data", "\", "\\")]
Reply With Quote
  #3  
Old 07-20-2007, 03:38 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-15-2003
Posts: 44
Thanks, that was it.

Tom
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:08 PM.


Copyright © 1999-2023 Kinook Software, Inc.