pieczniq Posted February 11, 2007 Posted February 11, 2007 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.
bj-kaiser Posted February 11, 2007 Posted February 11, 2007 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.
Camarade_Tux Posted February 11, 2007 Posted February 11, 2007 It's maybe a problem with NTFS rights but imho you should have a look at this page.
bj-kaiser Posted February 11, 2007 Posted February 11, 2007 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
pieczniq Posted February 12, 2007 Author Posted February 12, 2007 Geez Man, Thanks. You're the best. :-)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now