Filename Checker

Can anybody help im looking for a simple program that checks to see if a filename and extension meets the DOS 8.3 criteria

Many thanks if anybody can help or point me to somebody that does know.


Comments

  • There are two ways of doing this.
    1. Try to creat/open the file. If you can, then it is valid, if not
    then it is invalid.

    2. Go through the name array one byte at a time.
    If you hit more than one "." it is probably bad.
    IF you hit any special characters "", "?" then
    it is also bad. If you make it to the end of the
    filename, it should be okay.
    Oh, also check number of characters before the
    "." and after. (8 and 3)

    So you should have the variables
    num_before
    num_after
    total_chars
    valid_name

    Please check out
    http://slicer69.tripod.com/code/
    for more Assembly code.

  • : Can anybody help im looking for a simple program that checks to see if a filename and extension meets the DOS 8.3 criteria
    :
    : Many thanks if anybody can help or point me to somebody that does know.
    :
    :
    :
    How do you want it to get the in put by seaching a dir or command line?
    \|///
    @)
    ASHLEY4.

Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion