I Was Doing Some Coding and i made a Files And Folders Unit.
I was Testing My Program When It said All Directorys Found!
It went to make the file but it closed the window. I thought it was a file making error but it was because the folder was never made...
Procedure GetFolders;
BEGIN
writeln('Getting Folders...');
Delay(1000);
Folders.System := Fsearch('System',GetEnV('Not')); //The Thing I dont understand..
IF(Folders.System = 'Not')Then
begin
writeln('Missing Directory "System"');
writeln('Making Directory...');
Delay(200);
CreateDir('System');
end;
Folders.Other := Fsearch('Other',GetEnV('Not'));
IF(Folders.Other = 'Not')Then
begin
writeln('Missing Directory "Other"');
writeln('Making Directory');
Delay(200);
CreateDIR('Other');
end;
writeln('All Directorys Found!');
END;
Ive used the GetEnV before But i dont know what i did wrong Now..