Is it possible to delete a directory with Pascalscript?
Is it possible to delete a directory with Pascalscript?
As subject. Thank you.
Re: Is it possible to delete a directory with Pascalscript?
I think you need to execute a command line, such as
cmd.exe /C rmdir xyz
I‘ll test it and post an example.
cmd.exe /C rmdir xyz
I‘ll test it and post an example.
Re: Is it possible to delete a directory with Pascalscript?
Here's an example:
Code: Select all
function OnProfileStart:Boolean;
begin
Execute('CMD.EXE /C RMDIR D:\Tests\Deletethis',60);
Result:=true;
end;Re: Is it possible to delete a directory with Pascalscript?
Thank you, Tobias.