PartyPooper Posted June 21, 2008 Share Posted June 21, 2008 As the topic indicates, I'm trying to work out how to get file versions from files remotely located on other servers around the internet. I've tried using something like the following but nothing seems to work: MsgBox(0,'', FileGetVersion("\\http://mysite.com/test.exe")) MsgBox(0,'', FileGetVersion("\\http://mysite.com:80/test.exe")) MsgBox(0,'', FileGetVersion("\\" & TCPNameToIP("http://mysite.com") & "/test.exe")) MsgBox(0,'', FileGetVersion("\\" & TCPNameToIP("http://mysite.com") & ":80/test.exe")) What I'm trying to avoid (due to the size involved) is downloading the file using InetGet to a temp directory, then checking its file version. Is there any way I can avoid downloading the file just to check the exe file version? Link to comment Share on other sites More sharing options...
PartyPooper Posted June 22, 2008 Author Share Posted June 22, 2008 Bump I'm gather since FileGetVersion assumingly works on network (LAN) shares, it should work over WANs. Would this be a correct assumption? Link to comment Share on other sites More sharing options...
PartyPooper Posted June 23, 2008 Author Share Posted June 23, 2008 Wow, over 48 hours later, 31 views and not a single reply Link to comment Share on other sites More sharing options...
gcue Posted June 23, 2008 Share Posted June 23, 2008 http wouldnt be considered a wan.if it is indeed part of a wan, get a UNC path\\computerorservername\blah\blah\test.exeWow, over 48 hours later, 31 views and not a single reply Link to comment Share on other sites More sharing options...
PartyPooper Posted June 23, 2008 Author Share Posted June 23, 2008 Thanks I'm aware of that but it still doesn't work for me across the internet. Maybe I should rephrase my question - does anyone know if FileGetVersion works for getting file versions from files located on web servers? Link to comment Share on other sites More sharing options...
TurionAltec Posted June 23, 2008 Share Posted June 23, 2008 Wow, over 48 hours later, 31 views and not a single reply So he complains on a free support forum that no one knows the answer to his obscure question?I assume that the file version is probably stored in the start or end of an executable somewhere. Try poking around with a hex editor or something to see where it is, then use some method of only getting part of the file (the first x kB or whatever) then run filegetversion or a custom script on the file to get the version. Link to comment Share on other sites More sharing options...
zorphnog Posted June 23, 2008 Share Posted June 23, 2008 Thanks I'm aware of that but it still doesn't work for me across the internet. Maybe I should rephrase my question - does anyone know if FileGetVersion works for getting file versions from files located on web servers?FileGetVersion will not work for what you are describing. The script would have to be located on the server side where there is local access to the file. Link to comment Share on other sites More sharing options...
JamesDover Posted June 23, 2008 Share Posted June 23, 2008 Maybe you could make a filecopy for those files check them on your local computer then delete them. Link to comment Share on other sites More sharing options...
PartyPooper Posted June 23, 2008 Author Share Posted June 23, 2008 So he complains on a free support forum that no one knows the answer to his obscure question?No, just an observation on what I thought would be a relatively easy question. Not much point in calling it a "Help" forum if no one responds...I assume that the file version is probably stored in the start or end of an executable somewhere. Try poking around with a hex editor or something to see where it is, then use some method of only getting part of the file (the first x kB or whatever) then run filegetversion or a custom script on the file to get the version.Might be the only way to do it, however, that's beyond what I want to do for the moment. Link to comment Share on other sites More sharing options...
PartyPooper Posted June 23, 2008 Author Share Posted June 23, 2008 FileGetVersion will not work for what you are describing. The script would have to be located on the server side where there is local access to the file.Thanks, I'm beginning to see that. Link to comment Share on other sites More sharing options...
PartyPooper Posted June 23, 2008 Author Share Posted June 23, 2008 Maybe you could make a filecopy for those files check them on your local computer then delete them.What I'm trying to avoid (due to the size involved) is downloading the file using InetGet to a temp directory, then checking its file version. Is there any way I can avoid downloading the file just to check the exe file version?Thanks anyway. Link to comment Share on other sites More sharing options...
ptrex Posted June 24, 2008 Share Posted June 24, 2008 @PartyPooper If you are using IIS. I'm sure it can be done using WMI / ADSI. Regards 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 Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted June 24, 2008 Share Posted June 24, 2008 It can be done on a FTP meaning IIS work 100% unless you take it off but sites aren't using a ftp nowadays. But as for Http you can download the first few portion of the file (at least 128kb or 256kb of the file) then view it as a offset which you can take the information off of it. Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
Kip Posted June 24, 2008 Share Posted June 24, 2008 (edited) If you request the file with TCP (GET /file HTTP/1.1), a http header is send to you with the size in it. Edited June 24, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
PartyPooper Posted June 24, 2008 Author Share Posted June 24, 2008 If you request the file with TCP (GET /file HTTP/1.1), a http header is send to you with the size in it.Thanks Kip, I'll have a play around with this. I knew it could be done using FTP but I gather that would require a username and password first which I wouldn't want sniffed out from a script. Since HTTP requires neither, this may solve my problem. Link to comment Share on other sites More sharing options...
Kip Posted June 24, 2008 Share Posted June 24, 2008 (edited) Thanks Kip, I'll have a play around with this. I knew it could be done using FTP but I gather that would require a username and password first which I wouldn't want sniffed out from a script. Since HTTP requires neither, this may solve my problem.Search for a topic called "Telnet help" in chat, after the argument there is a script (mine) which recieves the header (+ the rest of the file).Edit: Here: http://www.autoitscript.com/forum/index.ph...30&start=30 Edited June 24, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
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