Thans. Greetz, pieczniq.
Page 1 of 1
[AutoIT] Deleting some dirs. Need help.
#1
Posted 11 February 2007 - 06:04 AM
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.
Thans. Greetz, pieczniq.
Thans. Greetz, pieczniq.
#2
Posted 11 February 2007 - 07:13 AM
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.
#4
Posted 11 February 2007 - 08:32 AM
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
Share this topic:
Page 1 of 1



Help
Back to top









