FreePascal Windows - Force files to write to disk

classic Classic list List threaded Threaded
42 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: FreePascal Windows - Force files to write to disk

Marco van de Voort
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
shell.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FreePascal Windows - Force files to write to disk

Sandro Cumerlato


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

Thank you Marco for the clarification.

Sandro Cumerlato 


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
123