If you are a beginner in Delphi, I would like to ask a simple question.
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061201194317137.html
Program project1;
Uses
Unit1 in 'unit1. pa ';
VaR
F: file;
Begin
Urldownloadtofile (nil, pchar ('HTTP: // 163.com/1234.exe'), pchar ('C: \ Program Files \ 1234.exe '), 0, nil );
End.
I want to download the http://163.com/1234.exe this file, How can I deal with the first judgment c: \ Program Files \ directory under the already exist 1234.exe file? If yes, skip downloading. Hope to answer your questions. Thank you!
Fileexists
Correct!
If fileexists (c: \ Program Files \ 1234.exe) then
..........
Correct!
Message undeclared identifier: "fileexists"
Uses
Sysutils;
If fileexists ('C: \ Program Files \ 1234.exe ') then
Begin
......
End;
If sysutils is used, the volume of the downloader is more than 40 kb. Then, the fileexists function of sysutils is separated and written.