Jump to content
Sign in to follow this  

Delete dirs with $

Recommended Posts


In the windows dir I want to delete all the dirs beginning with $ and ending with $. This dirs are old temp install dirs that are unuseful. Someone here can tell me how to use the $ in a file name? :)

Thnx for the help!


Share this post

Link to post
Share on other sites


#Include <File.au3>
#Include <Array.au3>
$path = "c:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests" 
$FileList = _FileListToArray($path, "$*$", 2)
If (Not IsArray($FileList)) and (@error = 1) Then
    MsgBox(0, "", "No Files\Folders Found.")
_ArrayDisplay($FileList, "$FileList")

For $i= 1 To UBound($FileList) - 1
    DirRemove($path & "\" & $FileList[$i])

So long,


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...