Jump to content

Need help to find old files on Files server


Recommended Posts

Hello,

I'm new here and new to AutoIT. This is an amazing tool and inspiring contributions from the members.

I would appreciate some help since I have little experience. 

We are looking for a script to run through a large file servers and build an HTML report detailing files, their age (more than a year), last access, and the person having full permission access...

Thank you....

 

Link to comment
Share on other sites

  • Moderators

khalidAltayaran,

Welcome to the AutoIt forums.

But I must point out that we do not provide scripts to order - we help you get your script running as you wish. Think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers.

So.....what have you coded so far yourself?

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Hello.

As a start, lookup the autoit help files for:

 

FileGetTime()

filefindfirstfile()

filefindnextfile()

 

$RootDir="C:\temp\"


$files=0
$dirs=0

SearchRecursive($RootDir)

MsgBox(0,"done",$files & " files in " & $dirs & " directories were scanned.")


Func SearchRecursive($_path)
    $dirs+=1
    Local $search=FileFindFirstFile($_path & "*.*")
    if $search=-1 Then ;nothing at all
        FileClose ($search)
        Return
    EndIf

    while 1
        $next=FileFindNextFile($search)
        if @error Then
            ExitLoop ; done for this DIR
        if @extended Then
            SearchRecursive($_path & $next & "\")
        Else
            $files+=1
            ; get the info you are looking for
            ; and build your html page
        EndIf
    WEnd
    FileClose($search)
EndFunc

 

Regards, Rudi.

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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
 Share

×
×
  • Create New...