Welcome! Log In Create A New Profile

Advanced

Short File Name from Long File Name

Posted by GregValiant 
Short File Name from Long File Name
November 10, 2020 06:22AM
Hello,
I've been working on a piece of software. I would like a user to be able to generate a gcode file that will call a 2nd gcode file using "M32 S??? MyFile.gco". It works fine but I never know the *.gco file name unless I copy a gcode file to a card, insert it into the printer, and then query the printer with M20. Then I have to remove the card, enter the filename, and finally I can print the files. It would be much simpler to know how Marlin will generate the 8.3 filename from the long file name.

So my question is...how is the 8.3 file name generated, and can it be anticipated? If the long file names are "This is the file I want to print.gcode" and "This is the file that gets called.gcode" then what would be the 8.3 equivalents?

I hope that is clear. Thanks in advance.
Re: Short File Name from Long File Name
November 10, 2020 10:59AM
The operating system creates the 8.3 filename.

details are here [en.wikipedia.org].
Re: Short File Name from Long File Name
November 10, 2020 04:08PM
Dust, you are the man. It's simple, and easy to understand.

Edited 1 time(s). Last edit at 11/10/2020 04:08PM by GregValiant.
Sorry, only registered users may post in this forum.

Click here to login