Category : Pascal Source Code
Archive   : WHEELS.ZIP
Filename : MOVEFILE.PAS
The purchaser of these procedures and functions may include them in COMPILED
programs freely, but may not sell or give away the source text.
This program uses the procedure MOVE to move a file from one subdirectory to
another, possibly renaming it in the process.}
{@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}
program Move_File;
{$I filename.typ}
{$I regpack.typ}
{$I movefile.lib}
{$I errmessg.lib}
var
Old, New : filename_type;
error : byte;
begin
Write('Move: ');
ReadLn(Old);
Write('To: ');
ReadLn(New);
MOVEFILE(Old,New,error);
if error = 0 then
begin
WriteLn('Sucessfully moved ',old);
WriteLn(' to ',new);
end
else
WriteLn(message(error));
end.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/