GetFile strFile. I know how to insert "Dim filesize" but I am not sure how to compare the size and display a custom message. Could you help please? This really isn't a VBScript training forum. I recommend getting a good beginner's book on VBScript and start experimenting; for example:.
We just don't have the resources in this forum for basic VBScript training. Please keep in mind that most of the forum participants help others for free. As an aside, you earlier said you asked a homework question in a different thread.
If we do the work for you, you're really not learning the material. Office Office Exchange Server. Not an IT pro? Script Center. Sign in. United States English. Ask a question. This script uses the FileSystemObject and requires a grand total of 2 lines of code:.
Well, for two reasons. Second, GetFileVersion does only one thing: it returns the version number of a file. And by file we generally mean a. What if you wanted some additional information, like the file size or the last modification date? Because of that you might want to use WMI to determine the version of a file. The only drawbacks? Other than that, however, the two scripts are identical: they both return the version of a specified file.
For Each objFile in colFiles Wscript. Echo objFile. Version Next Like we said, not too bad. Prev 1 2 Next Page 1 of 2. Recommended Posts. BigDaddyO 72 Posted July 18, Posted July 18, edited. Could anybody give me a hand with this. File Props. Link to post Share on other sites. HardCopy 1 Posted July 18, Posted July 18, Thanks, Mike. I am not sure where your at in the script but this might work. Read 2 ;-- Read bytes 13,14 to get number of named resource types. Read 2 ;-- Read bytes 15,16 to get number of numbered resource types.
OK, I have given up on trying to convert the file to AU3. I have attached both the updated File Props. Now I just have to integrate the PatchProp. Thanks to those who tried to help. GaryFrost 18 Posted July 18, Posted July 19, edited.
0コメント