Results 1 to 3 of 3

Thread: i need help quick! (formating question)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    i get the command line by doing Command()
    it gives me:

    "C:\TheFilePath\example.exe"

    but it puts the quotes in!

    how do i get the quotes out????? is the a function or something to remove quotes from a string? any help is appreciated.

    thanks in advance.
    ______________

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    I am sorry, I dont know the code, but I can suggest triming 1 character from the left, and 1 from the right

    hope that can be of any help
    NXSupport - Your one-stop source for computer help

  3. #3
    Guest
    Trim Character (quotes in your case)

    Code:
    Function TrimChar(text As String, char As String) As String
    If InStr(text, char) <> 0 Then
    For x = 1 To Len(text)
    If Mid(text, x, 1) = char Then
    temp = temp
    Else: temp = temp & Mid(text, x, 1)
    End If
    Next x
    TrimChar = temp
    Exit Function
    Else
    TrimChar = text
    End If
    End Function
    
    x = Command$
    newx = TrimChar("" & x & "", Chr$(34))
    MsgBox newx

Posting Permissions

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



Click Here to Expand Forum to Full Width