MSFN Forum: [AutoIT] Deleting some dirs. Need help. - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[AutoIT] Deleting some dirs. Need help. Rate Topic: -----

#1 User is offline   pieczniq 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 18-September 06

  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. :unsure:


Thans. Greetz, pieczniq. :hello:


#2 User is offline   bj-kaiser 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 415
  • Joined: 05-December 06
  • OS:Windows 7 x86
  • Country: Country Flag

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.

#3 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 11 February 2007 - 07:45 AM

It's maybe a problem with NTFS rights but imho you should have a look at this page.

#4 User is offline   bj-kaiser 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 415
  • Joined: 05-December 06
  • OS:Windows 7 x86
  • Country: Country Flag

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
 


#5 User is offline   pieczniq 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 18-September 06

Posted 12 February 2007 - 07:44 AM

Geez Man, Thanks. You're the best. :-) :thumbup :hello:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy