Page 1 of 1

Is it possible to delete a directory with Pascalscript?

Posted: Tue Jul 22, 2025 11:00 am
by Wombat
As subject. Thank you.

Re: Is it possible to delete a directory with Pascalscript?

Posted: Tue Jul 22, 2025 1:57 pm
by tobias
I think you need to execute a command line, such as
cmd.exe /C rmdir xyz

I‘ll test it and post an example.

Re: Is it possible to delete a directory with Pascalscript?

Posted: Tue Jul 22, 2025 10:36 pm
by tobias
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?

Posted: Wed Jul 23, 2025 8:51 am
by Wombat
Thank you, Tobias.