Jump to content

Recommended Posts

  • Replies 67
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

I got a question about your UDF, is it possible to edit the specified details and save them afterwards? It would be awsome for use when you want to edit your song information or anything like that :)

[u]Its all about experience...[/u]...

Posted

I got a question about your UDF, is it possible to edit the specified details and save them afterwards? It would be awsome for use when you want to edit your song information or anything like that :)

I believe this only "Reads" the extended properties, in order to change the ID3 data you'd have to write to that data block in the file.

Posted

I'm using the latest 3.2 version and having problems with getting information about EXE files using this UDF, especially 32, 33, and 34 where those properties do exist.

Any body else having the same problems?

Same here.

  • 5 months later...
Posted

Thanks, great UDF... but...

There is a problem to get the “Author” attribute...

$NotepadAuthor = _GetExtProperty(@SystemDir & "\Notepad.exe", 9)

MsgBox(0, "", $NotepadAuthor)

We get always 0

Any ideas on how to fix it?

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

notepad.exe doesn't have an author, which is why you get 0.

Check its actual properties.

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
Posted

notepad.exe doesn't have an author, which is why you get 0.

Check its actual properties.

Have you plan to write a Set Extended Property

Thanks,

Posted

notepad.exe doesn't have an author, which is why you get 0.

It is onle example, this not work on all files, and the Company also return 0 - I tryed it on my compiled script, where the Company name is set, and i get always 0 - i also tryed using -1 param (to get array), and returns only first 9 elements (almoust in all files, exept the music files).

So my question is, it is possible to get the “Company name”, or the “Author” of the program, or even the “Rights Reserved” (somthing like this :whistle: )?

Thanks.

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted (edited)

@MsCreatoR

This definitely works for me.

Dim $arrHeaders[14]

$objShell = ObjCreate ("Shell.Application")
$objFolder = $objShell.Namespace ("C:\TEMP")
$objFSO = ObjCreate("Scripting.FileSystemObject")

For $i = 0 to 13
    $arrHeaders[$i] = $objFolder.GetDetailsOf($objFolder.Items, $i)
Next

For $strFileName in $objFolder.Items()
    For $i = 0 to 13
        If $i <> 9 then
            consolewrite ($arrHeaders[$i] & ": " & $objFolder.GetDetailsOf($strFileName, $i) & @CR)
        EndIf
    Next
    ConsoleWrite (@CR)
Next
    
; More Attributes !!

Dim $filesys, $demofile, $createdate 
$filesys = ObjCreate("Scripting.FileSystemObject")
$demofile = $filesys.GetFile("C:\Temp\rdc9_browser.exe") ; Change to your file here !!

ConsoleWrite ("More Attributes !!"&@CR)
;consolewrite ($demofile.Atributes&@CR)
consolewrite ("DateCreated "&$demofile.DateCreated&@CR)
consolewrite ("DateLastAccessed "&$demofile.DateLastAccessed&@CR)
consolewrite ("DateLastModified "&$demofile.DateLastModified&@CR)
consolewrite ("Drive "&$demofile.Drive&@CR)
consolewrite ("Name "&$demofile.Name&@CR)
consolewrite ("ParentFolder "&$demofile.ParentFolder&@CR)
consolewrite ("Path "&$demofile.Path&@CR)
consolewrite ("ShortName "&$demofile.ShortName&@CR)
consolewrite ("ShortPath "&$demofile.ShortPath&@CR)
consolewrite ("Size "&$demofile.Size& " Bytes"&@CR)
consolewrite ("Type "&$demofile.Type&@CR)
ConsoleWrite (@CR)

Enjoy !!

ptrex

Edited by ptrex
Posted (edited)

ptrex

This definitely works for me.

Thank you, but in these returned values there no info about company name, or author of file, or the “Rights Reserved” info. Edited by MsCreatoR

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 2 weeks later...
Posted

I find it!

If someone want to get the “Company name”, or the “Author” of the program, or the “Rights Reserved”, then you can use FileGetVersion() with second parametr set :whistle:

--------------------------------------------

Rule № 1 in AutoIT - Read the Help file before asking questions!

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 2 weeks later...
Posted

Have you plan to write a Set Extended Property

Thanks,

Slightly off topic, but you need a Resource Editor for this. There is one bundled in one of the AutoIT folders if I remember.
  • 4 months later...
  • 3 months later...
Posted (edited)

I get this Error.

Line 60

$oFile = $oDir.Parsename($sFile)

Error: The Requested action with this object has Failed

Anyone know why?

Edit:

I realized you need the full path to your song, @ScriptDir does the trick

Edited by the_lord_mephy
My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
  • 3 months later...
Posted

Hi Simucal,

Have a ques regurding extprop.au3 (GetExtProperty).

Do u have a code for placing an attribute into an existing file not only get but put ?

Tnx Eyal

Posted

@MsCreatoR

This definitely works for me.

Enjoy !!

ptrex

Here is another one that I trew together for someone in another thread.

#487164

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

  • 11 months later...
Posted (edited)

I came across this while building an app for my MP3 files. When I tried using the # values for Artist and Title, neither returned what it was "supposed" to. I found that part of the reason was because I had an external app, called FolderSize, installed. FolderSize adds a column to explorer called "FolderSize" which displays the size of both files and folders...really useful sometimes :)

Anyway, I thought that was the whole story, and I right clicked on the top of the listview and selected "more". This gave me the full list of the possible fields in the same order as the UDF returned them. So I went on to investigate, and long story short, came up with the following:

The max value for a few of the music files on my PC was 44 (45th array item). Using this UDF to read one of the files returned the following:

For $I=40 to 44
 ConsoleWrite($I & ": " & _GetExtProperty($PATH,$I) )
Next

Wrote this into the console:

40: Description
41: File Version
42: Product Name
43: Product Version
44: Keywords

Also, the value I used for artist was 20, and the title was 14

I may set it up to scan all of my HDDs for another max but that'd take a while...3097 files took me roughly 4.5 minutes scanning from $I=40 to 60.

Anyway...any thoughts, comments, etc?

Anyway, I got my script working thanks to this UDF =) +Pretend Rep

Edited by Overkill

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
  • Recently Browsing   0 members

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