Jump to content

Folder Log


Prab
 Share

Recommended Posts

Here is a script I made for fun. I wanted to learn simple GUIs and recursion in AU3. Feel free to use it if you wish. If anyone has suggestions, let me know!

Edit: Just to give you an idea, here is some sample output:

You have 34 files and folder in C:\Documents and Settings\user\My Documents\scripts\GUI

C:\Documents and Settings\user\My Documents\scripts\GUI\Extras

C:\Documents and Settings\user\My Documents\scripts\GUI\Extras\Control Templates

C:\Documents and Settings\user\My Documents\scripts\GUI\Extras\Control Templates\control_templates.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Extras\Control Templates\readme.txt

C:\Documents and Settings\user\My Documents\scripts\GUI\FD.exe

C:\Documents and Settings\user\My Documents\scripts\GUI\fd.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Forms

C:\Documents and Settings\user\My Documents\scripts\GUI\history.txt

C:\Documents and Settings\user\My Documents\scripts\GUI\Language

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\help_eng.chm

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_bg.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_bra.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_cze.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_dut.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_eng.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_frbe.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_ger.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_ita.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_nor.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_pol.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_rus.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_spa.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Language\lang_zhcn.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\styles.xml

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\About Box.kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Dialog with help (vertical).kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Dialog with help.kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Dual ListBox.kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Form.kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Password Dialog.kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Standard Dialog (vertical).kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Standard Dialog (horizontal).kxf

C:\Documents and Settings\user\My Documents\scripts\GUI\Templates\Tabbed Pages.kxf

Edit2: Small source code update.

Edit3: Saves last save/scan locations.

FolderLogGui.exe

FolderLogGui.au3

Edited by Prab
Link to comment
Share on other sites

Here is a script I made for fun. I wanted to learn simple GUIs and recursion in AU3. Feel free to use it if you wish. If anyone has suggestions, let me know!

Edit: Just to give you an idea, here is some sample output:

Edit2: Small source code update.

Hi,

Bug? Not a big deal, it still works, but If I happen to include a trailing \ in the Source Folder spec. it gets echoed in the output as \\

Question, is it missing the first filefind? ;)

$searchHandle = FileFindFirstFile($searchLocation & "\*.*")

I don't see this being added to or being written out to the log file.

Link to comment
Share on other sites

@DaRam, As far as I can tell it does not miss any files. I have ran it on a folder with just 1 file and on my entire harddrive. In both cases (and many in the middle) it came back with correct results.

I will fix the bug with the trailing slash, but the only way there would be a trailing slash is if you type it (or select a drive letter ;) ). If you use the folder selector, it fills out the field correctly.

Link to comment
Share on other sites

Ok, I was curious about the sequence of FindFirst and FindNext. And realized the FindFirst just returns a success or error code to be used for subsequent call to FindNext.

@DaRam, As far as I can tell it does not miss any files. I have ran it on a folder with just 1 file and on my entire harddrive. In both cases (and many in the middle) it came back with correct results.

Edited by DaRam
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...