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
 
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.
 
Back
Top