Language:
Русский
English
{SetCurDr.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the SetCurDir procedure.}
uses WinCrt, WinDOS;
const
ChangeTo: PChar = 'C:\';
CDrive: Byte = 3;
var
CurDir: PChar;
begin
GetMem(CurDir, 80);
SetCurDir(ChangeTo);
GetCurDir(CurDir, CDrive);
Writeln('The current directory on drive c is ', CurDir,'.');
end.