Results 1 to 3 of 3

Thread: ShortPathAndFile Desktop

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    ShortPathAndFile Desktop

    How can I get the Short path and filename of a file that is on my desktop??

    I'm running windowsXP.

    I'm doing it the way that one would presumably do it, and i'm getting gobbldy-goop... but it's working for all the files which aren't on my desktop (or in a desktop folder)...

    Does anyone know??
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    short path? What's that, and why would you want it?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Post

    I'm using GetShortPathName() to get it. And it's working perfectly for all files which aren't on my desktop, but some reason the files on my desktop give the function errors. I'm using it because I need a file name that has no spaces in it.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

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