Results 1 to 4 of 4

Thread: GOT THE FILE NAME!!!!!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Angry

    but it is in DOS-format!!!!!! ???? !!!!!!!

    (C:\progra~1\micros~1\file~1.cra)

    why?

    the richtextbox isn't able to handle this type of filename...

    how to convert?


  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    tell us how you got it?
    and we'll see if we can help.
    Dim

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146
    ok...

    first i added a new file type and an action

    open "c:\myprogramms\editor\editor.exe" "%1"

    then, in vb, i added file = command()

    the original filename was "C:\programs\file1.cra"

    the file-string in vb contained "C:\progra~1\file1~1.cra"

  4. #4
    Guest
    API:

    Public Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long


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