mesale0077 14 Posted October 6, 2012 hi how is convert ,a rc file to make a res file ı want not use rc.exe or another code $OutResPathee="versioninfo.rc" $OutResPathee_1=FileOpen($OutResPathee ,16) $p_VS_VERSIONINFO_Total=FileRead($OutResPathee_1,1) $OutResPath = @ScriptDir & "\versioninfo.res" Local $Fh = FileOpen($OutResPath, 2 + 16) FileWrite($Fh, DllStructGetData($p_VS_VERSIONINFO_Total, 1)) FileClose($Fh) FileClose($OutResPathee) thank you now Share this post Link to post Share on other sites
water 2,359 Posted October 6, 2012 To use DLLStructGetData there needs to be a struct. $p_VS_VERSIONINFO is just a variable. What's the value of @error after DLLStructGetData? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Gibbz 0 Posted October 6, 2012 if u mean change file extension only u can use file copy Share this post Link to post Share on other sites
water 2,359 Posted October 6, 2012 I mean you use DllStructGetData inj your code to retrieve data from a structure but you do not create the structe anywhere in your code. So DllStructGetData will return an error in macro @error. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
wolf9228 65 Posted October 6, 2012 (edited) $tagVS_VERSIONINFO = _ "WORD wLength;" & _ "WORD wValueLength;" & _ "WORD wType;" & _ "WCHAR szKey;" & _ "WORD Padding1;" & _ "DWORD dwSignature;" & _ "DWORD dwStrucVersion;" & _ "DWORD dwFileVersionMS;" & _ "DWORD dwFileVersionLS;" & _ "DWORD dwProductVersionMS;" & _ "DWORD dwProductVersionLS;" & _ "DWORD dwFileFlagsMask;" & _ "DWORD dwFileFlags;" & _ "DWORD dwFileOS;" & _ "DWORD dwFileType;" & _ "DWORD dwFileSubtype;" & _ "DWORD dwFileDateMS;" & _ "DWORD dwFileDateLS;" & _ "WORD Padding2;" & _ "WORD Children;" Using RC (The RC Command Line)http://msdn.microsoft.com/en-us/library/windows/desktop/aa381055%28v=vs.85%29.aspx About Resource Fileshttp://msdn.microsoft.com/en-us/library/windows/desktop/aa380599%28v=vs.85%29.aspx VS_VERSIONINFO structurehttp://msdn.microsoft.com/en-us/library/windows/desktop/ms647001%28v=vs.85%29.aspx Edited October 6, 2012 by wolf9228 صرح السماء كان هنا Share this post Link to post Share on other sites
mesale0077 14 Posted October 7, 2012 ok VALUE "FileVersion", "4.0.0.54" VALUE "Comments", "@mesale0077" VALUE "FileDescription", "xxxxxxx" VALUE "LegalCopyright", "@mesale0077 2012-2013" VALUE "CompanyName", "@mesale0077 Software Production" VALUE "ProductName", "xxxxxxx" VALUE "ProductVersion", "3.3.8.1" VALUE "Coder", "@mesale0077" VALUE "Make date", "02-06-2012" dont use RC.exe with autoit how is new res file make Share this post Link to post Share on other sites