+ Reply to Thread
Results 1 to 3 of 3

Extra Backslash

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Extra Backslash

    with the help of rylo, I finally got the perfect code that works for me, to list a folder with path name.

    if I select any root like C:, D:, E:, an extra backslash is added. can this be fixed that, what ever folder or root drive I select only 1 backslash is added

    here is the code

    Please Login or Register  to view this content.
    Last edited by CobraLAD; 04-30-2009 at 04:53 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Extra Backslash

    Presumably you mean here ?

    Please Login or Register  to view this content.
    in which case try

    Please Login or Register  to view this content.
    But I confess I'm not sure why you're using CurDir - shouldn't it be using .SelectedItems(1) ?

  3. #3
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Extra Backslash

    Thanks DonkeyOte it works

    I did use .SelectedItems(1), but I always try first to solve a code before posting here for help, that was 1 of the things I changed, to see if that does not solve the problem. either 1 of them works

    thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1