convert forward slash to back slash

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Guest

convert forward slash to back slash

Post by Guest » Tue Nov 16, 2004 7:31 pm

I'm reading lines of a file that may contain forward slashes (unix directories). How can I read them in and convert the forward slashes to back slashes so I can use them in a windows directory structure?

thanks.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Nov 16, 2004 9:31 pm

Use ReadLn to read in each line. Use VBScript's Replace function to replace all occurences of forward slash with back slash (or whichever).
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts