Jump to content

[AutoIT] Deleting some dirs. Need help.


pieczniq

Recommended Posts

Hi. I wanted to write a script which deletes all folders from C:\WinXP called $NtUninstal... (the updates uninstalls) and I can't because it's very hard to me. Please help me. Write here part of script or links to topic which solves my problem. PLZ. :unsure:

Thans. Greetz, pieczniq. :hello:

Link to comment
Share on other sites


Search the AutoIT help file for DirRemove and FileFind. I think the examples should be good enough to learn it. And please, use it on a test directory structure first. That will save you some headaches if anything goes wrong.

Link to comment
Share on other sites

Here is a simple script that lists all $NTUninstall folders in the editors console. To add a DirRemove should not be to hard, but I won't do it.

$search = FileFindFirstFile (@WindowsDir & "\$ntuninstall*")

While 1
$file = FileFindNextFile($search)
If @error Then ExitLoop
ConsoleWrite("File:" & $file & @CRLF)
WEnd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...