Howdy, Stranger!

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

Categories

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

  • slicer69slicer69 Member Posts: 272
    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.

  • ASHLEY4ASHLEY4 Member Posts: 254
    : 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.

  • Andre YoungAndre Young USAMember Posts: 0

    _______ / http://forcoder.org / free video tutorials and ebooks about / Swift C Scratch Ruby Delphi C# Assembly PHP MATLAB Go Visual Basic .NET Python R Java C++ Objective-C PL/SQL Perl Visual Basic JavaScript VBScript LabVIEW Fortran F# D Rust COBOL Ada Hack Julia Crystal Apex Lisp FoxPro ABAP Transact-SQL Prolog Dart Lua Kotlin Scala SAS Logo ML Erlang Alice Bash Clojure Scheme Awk / _

Sign In or Register to comment.