[fpc-pascal] mciSendString with long file names

Alexander Hofmann Alexander.hofmann at new-h.de
Tue Sep 20 22:04:08 CEST 2022


I'm not so sure if that's an FPC-only issue. MCI commands like that have been around for a while, so spaces might not have been "considered" in the first place.

A workaround was presented years ago, I can only find the archived version: https://ftp.zx.net.nz/pub/archive/ftp.microsoft.com/MISC/KB/en-us/191/089.HTM

Basically, they suggested to create an alias to the file first using MCI "open" first, and then issue "play" on that alias instead of the filename.


Am 20. September 2022 19:21:08 MESZ schrieb James Richters via fpc-pascal <fpc-pascal at lists.freepascal.org>:
>I just figured out that short filenames won't work, my files are on a linux
>server... not NTFS drives.. so I'm back to getting it to work with spaces
>the normal file names
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220920/ac62a639/attachment.htm>

More information about the fpc-pascal mailing list