FileSystemObject..GetFileVersion()

  • Thread starter Thread starter Jamin Guy
  • Start date Start date
J

Jamin Guy

Has anyone successfully used the FileSystemObject.GetFileVersion
function to get the version of a file on a remote machine? and if so
how? I'm not able to get it to work. It works from a VBScript
application, but not from C#...
 
Has anyone successfully used the FileSystemObject.GetFileVersion
function to get the version of a file on a remote machine? and if so
how? I'm not able to get it to work. It works from a VBScript
application, but not from C#...

Why would you use the FileSystemObject over .NET's FileVersionInfo
class for this in C#?



Mattias
 
Will FileVersionInfo work for files on a remote machine?

Don't think I've ever tried it, but I don't see why it wouldn't.



Mattias
 
I just got it to work, but I had to use the WindowsIdentity class with
the LogonUser api function to impersonate a user with access to the
machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top