471,349 Members | 1,176 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

FileSystemObject..GetFileVersion()

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#...

Jul 21 '05 #1
8 4379
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #3
Will FileVersionInfo work for files on a remote machine?

Jul 21 '05 #4
Will FileVersionInfo work for files on a remote machine?

Jul 21 '05 #5
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #6
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.

Jul 21 '05 #7
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #8
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.

Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by John Dewbert | last post: by
2 posts views Thread by Sean S - Perth, WA | last post: by
2 posts views Thread by Luis Esteban Valencia | last post: by
4 posts views Thread by Jamin Guy | last post: by
1 post views Thread by G Gerard | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.