[fpc-pascal] FreePascal Windows - Force files to write to disk

Marco van de Voort marcov at stack.nl
Thu Mar 23 14:07:28 CET 2017

In our previous episode, Sandro Cumerlato said:
> ' delimiters are mandatory within this example because we are writing paths
> as string parameters directly into the source code.
> I believe that I should use both ' and " in case of spaces within paths:
> CopyFile('"c:\my silly path\autoexec.bat"','"c:\windows\temp\my silly
> path\autoexec.bat.backup"');

No. The "" is a shell/cmdline convention, and API calls are generally not

More information about the fpc-pascal mailing list