Link to home
Start Free TrialLog in
Avatar of PeterdeB
PeterdeBFlag for Netherlands

asked on

How to do this in Delphi? (some DOS commands)

Howdie Folks,

I'm using a command script to get my hands on a directory which is created by windows each time a program is installed. I cannot predefine the name and so far the only way for me to get the directory is by using this command script: (I use it in my unattended installs btw)

FOR /f %%i IN ('DIR /b /a:d "%AppData%\Mozilla\Firefox\Profiles"') DO RMDIR /S /Q "%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Profiles\%%i\Cache"

Is there a Delphi way of doing this? I need to access the directory after it has been created but before the user interacts.

Kind regards,

Dweep

Ps working samples make me a happy man
ASKER CERTIFIED SOLUTION
Avatar of BedouinDN
BedouinDN

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PeterdeB

ASKER

I'm still trying to get it to really delete all the junk, but you answered my question so here ya go mate!!

Kind regards,

Dweep ;-)