Results 1 to 4 of 4

Thread: Standard filename to dos

  1. #1

    Thread Starter
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Standard filename to dos

    How do I convert a standard windows filename and path to it's MS-DOS counterpart?

    Ex: C:\My Folder\Project.exe --> C:\MyFold~1\Project.exe

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    The File System object has a short name parameter.

    You could just use that.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3

    Thread Starter
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    Thanks

  4. #4
    Addicted Member
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    190
    it gifs no problem if the file-name's have a maxlengt from 8 chr()

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