Hi Everyone,

I need a vbs which would search for a file given as an input by the User and then retrieve the details of that file like its size,version, date modified,created and acceessed. Then it should write these results to an output file. Any help is appreciated

Regards,
Harie
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
for inspiration:

Set objArgs = WScript.Arguments

Function ShowDateCreated(filespec)
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(filespec)
ShowDateCreated = f.DateCreated
End Function
Answered 09/01/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
Getting the file version isn't as simple as it sounds, since - bizarrely - the FileSystemObject object has no native property for file version.

There is a file property class file on JSWare (http://www.jsware.net). I have just used (my edited version) in a log-in script addition for my current client, where the script needed to branch according to a DLL version difference.

As for the script you require, PM me with the details and I'll send you a quote. Since I expect that that will never happen, you should probably visit http://www.computerperformance.co.uk, download samples of scripts which perform the separate functions that you want (i.e. file search, results output, etc.) and then build a script which combines them.

EDIT:
BTW, it's probably not the best idea to use your email address as a 'nickname' on a public forum. Unless you sell anti-spam software, of course...
Answered 09/01/2009 by: VBScab
Red Belt

Please log in to comment
0
Getting the file version isn't as simple as it sounds, since - bizarrely - the FileSystemObject object has no native property for file version.

there is a FileSystemObject.GetFileVersion(path) method that returns the version of a file.

PJ
Answered 09/01/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
So there is! http://msdn.microsoft.com/en-us/library/b4e05k97%28VS.85%29.aspx How did I miss that? :)

What I should perhaps have said was that the 'File' object has no native property. That's where one would expect it, anyway.
Answered 09/01/2009 by: VBScab
Red Belt

Please log in to comment
0
hEY GUYS.. THANKS.. SORRY FOR THE DELAYED REPLY.. WAS WORKING ON A DIFFERENT PROJECT AND WAS AWAY ON A LONG LEAVE.. Thanks once again.. will try combining the inputs given n will get back to u tomorrow..

@vbscab: even i dont want to use my email id.. its got registered that way.. am not able to change it now..:-( :-( :-(
Answered 11/02/2009 by: hari.ram66@gmail.com
Senior Yellow Belt

Please log in to comment
0
1. It got registered that way because you entered it as your nickname; and
2. With only 8 posts so far, why not simply abandon this ID and register a more anonymous one?
Answered 11/03/2009 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity