Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    46

    Extract a path from another path with out slash

    I want extract this path:

    Code:
    C:\Documents and Settings\Soheyl\Application Data\MyFolder
    from:

    Code:
    C:\Documents and Settings\Soheyl\Application Data\MyFolder\
    i don't need "\"...
    how can me?

    I know must use "String.Min" and "Strin.ReverseFind"... but i cant!!!

    Best Regards;

    Soheyl

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    you can try this

    Code:
    sPath = C:\Documents and Settings\Soheyl\Application Data\MyFolder\
    if String.Right (sPath, 1) == "\\" then
         sPath = String.TrimRight(sPath, "\\");
    end
    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Nov 2005
    Posts
    46
    Dear TJ_Tigger;
    thanks;


Similar Threads

  1. extract path from shortcut (.lnk) file.
    By jassing in forum Setup Factory 6.0
    Replies: 9
    Last Post: 04-04-2003, 08:30 AM
  2. How do I add to my PATH statement at install?
    By Tnygaard in forum Setup Factory 6.0
    Replies: 3
    Last Post: 05-27-2002, 01:38 AM
  3. How to extract a file path from registry key?
    By skids in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 03-17-2002, 10:48 AM
  4. PATH environment variable
    By RDodson in forum Setup Factory 6.0
    Replies: 4
    Last Post: 02-27-2002, 12:17 PM

Posting Permissions

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