Announcement

Collapse
No announcement yet.

Find & read oddly named files?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Find & read oddly named files?

    Can Powerbasic for DOS make use of double periods in filenames?

    I.e., Can I open for output, open for input, etc., names like
    this:

    ANDERSON.IND.DAT
    ANDERSON.CEM.DAT
    ANDERSON.MED.DAT
    ANDERSON.COD.DAT <IMG SRC="http://www.powerbasic.com/support/forums/confused.gif" ALT="confused">

    Problem: Keeping applications from seeing an extension that
    application recognizes, and attempting to open it.

    Goal: Having other applications leave the data for my cemetery
    program alone so the data does not get corrupted.

    Would just changing the attributes before opening it solve the
    problem, I wonder? How have some of you solved this?

    Thank you.

    Robert

    ------------------

  • #2
    PB/DOS (and DOS) do not natively support LFNs. There are, however, interrupt functions available to DOS to handle LFNs when your program is running in a DOS box under Windows.

    ------------------
    If you try to make something idiot-proof, someone will invent a better idiot.
    If you try to make something idiot-proof, someone will invent a better idiot.

    Comment


    • #3
      Originally posted by Matthew Berg:
      PB/DOS (and DOS) do not natively support LFNs. There are, however, interrupt functions available to DOS to handle LFNs when your program is running in a DOS box under Windows.
      Understood. Can/do you recommend a source to read about
      interrupt functions and LFNs please?

      Thank you.

      Robert

      ------------------

      Comment


      • #4
        http://www.powerbasic.com/support/pb...ad.php?t=23451


        ------------------
        There are no atheists in a fox hole or the morning of a math test.
        If my flag offends you, I'll help you pack.

        Comment


        • #5
          There are LFN libraries in the Downloads section. They don't work in
          all cases, though-- check 'em on your expected target machines. (The
          routines are sound enough, it's just the check for "is LFN available?"
          that's shaky). Contact the authors...

          ------------------
          Tom Hanlin
          PowerBASIC Staff

          Comment

          Working...
          X