Nezoic Posted September 26, 2006 Posted September 26, 2006 Any idea why this returns 0 for everything in Windows 2000? works fine for me on XP.
Hideous Posted September 26, 2006 Posted September 26, 2006 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]...
Nezoic Posted September 28, 2006 Posted September 28, 2006 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.
gcriaco Posted September 29, 2006 Posted September 29, 2006 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.
Confuzzled Posted September 30, 2006 Posted September 30, 2006 (edited) I've got a feeling it works for multibyte character set Windows environments only. (Unicode) Now I recall - http://www.autoitscript.com/forum/index.php?showtopic=33528 has some discussion on this subject. Edited September 30, 2006 by Confuzzled
MrCreatoR Posted March 3, 2007 Posted March 3, 2007 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 Russian Community My Work... Spoiler Projects: 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 ProgramUDFs: 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 Examples: 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 ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
Simucal Posted March 4, 2007 Author Posted March 4, 2007 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)
LOULOU Posted March 5, 2007 Posted March 5, 2007 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 PropertyThanks,
MrCreatoR Posted March 5, 2007 Posted March 5, 2007 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 )?Thanks. Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: 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 ProgramUDFs: 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 Examples: 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 ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
ptrex Posted March 5, 2007 Posted March 5, 2007 (edited) @MsCreatoR This definitely works for me. expandcollapse popupDim $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 March 5, 2007 by ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
MrCreatoR Posted March 7, 2007 Posted March 7, 2007 (edited) ptrexThis 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 March 7, 2007 by MsCreatoR Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: 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 ProgramUDFs: 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 Examples: 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 ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
MrCreatoR Posted March 15, 2007 Posted March 15, 2007 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 --------------------------------------------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 Russian Community My Work... Spoiler Projects: 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 ProgramUDFs: 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 Examples: 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 ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
Confuzzled Posted March 24, 2007 Posted March 24, 2007 Have you plan to write a Set Extended PropertyThanks,Slightly off topic, but you need a Resource Editor for this. There is one bundled in one of the AutoIT folders if I remember.
Fabry Posted August 15, 2007 Posted August 15, 2007 Can I set/change owner? A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
the_lord_mephy Posted November 23, 2007 Posted November 23, 2007 (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 November 23, 2007 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]
seanhart Posted November 26, 2007 Posted November 26, 2007 Here's a slightly different approach to solve the same problem Some examples: $bitrate = _GetFileProperty("C:\WINDOWS\clock.avi", "Bit Rate") ;gives "00:00:12" $size = _GetFileProperty("C:\WINDOWS\Gone Fishing.bmp", "Dimensions") ;gives "128 x 128" $company = _GetFileProperty("C:\WINDOWS\Notepad.exe", "Company") ;gives "Microsoft Corporation"
eyalsemo Posted March 5, 2008 Posted March 5, 2008 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
GEOSoft Posted March 5, 2008 Posted March 5, 2008 @MsCreatoRThis definitely works for me.Enjoy !!ptrexHere 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!"
Overkill Posted February 14, 2009 Posted February 14, 2009 (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 February 14, 2009 by Overkill
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now