Long filename problem - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Long filename problem

MI_7MI_7 Posts: 36Member
[b][red]This message was edited by MI_7 at 2003-5-16 2:3:40[/red][/b][hr]
My program gets as parameter: c:windowsdesktopimportant_file.lbl
but i have to get the name in a DOS 8 char size.

I can make it like the 7 th and 8 char = ~1
like: c:windowsdesktopimport~1.lbl
(but how do i know if my file is really is ~1 or 2)

sow i need something to get the DOS name of a file..

Comments

  • MI_7MI_7 Posts: 36Member
    My program gets as parameter: c:windowsdesktopimportant_file.lbl
    but i have to get the name in a DOS 8 char size.

    I can make it like the 7 th and 8 char = ~1
    like: c:windowsdesktopimport~1.lbl
    (but this get's difficult when converting 3.1.lbl to a DOS 8 standard)
    (It then uses a sort of random number to fill the 3d till 6th char)

    Sow, I need something to get the DOS 8 char standard name of a file..

    I need help on this plz!


  • alexiusnoralexiusnor Posts: 5Member
    Long Path Tool is very useful if you are having problems in deleting, unlocking, copying and even renaming files that are considered filename too long by your system.
    Thus you need only download [link=http://longpathtool.com/]Long Path Tool[/link] and start using it and all your issue will be solved.
  • alexiusnoralexiusnor Posts: 5Member
    Long Path Tool is very useful if you are having problems in deleting, unlocking, copying and even renaming files that are considered filename too long by your system.
  • alexiusnoralexiusnor Posts: 5Member
    Why not [link=http://longpathtool.com/][b]Long Path Tool[/b][/link] as Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.
  • alexiusnoralexiusnor Posts: 5Member
    Why not [link=http://longpathtool.com/][b]Long Path Tool[/b][/link] as Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.
  • alexiusnoralexiusnor Posts: 5Member
    Why not [link=http://longpathtool.com/][b]Long Path Tool[/b][/link] as Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.
Sign In or Register to comment.