Questions tagged [getfileversion]
19 questions
7
votes
6 answers
Using C#, how to know whether a folder is located on a network or not
Using C#, I would like my application to return whether a folder (with an already known path) is located in a network or in my computer.
How can I do that?

MyrR
- 71
- 1
- 2
5
votes
4 answers
FileVersionInfo.GetVersionInfo() incorrect in Console Application
I'm getting some serious weirdness using FileVersionInfo.GetVersionInfo() and was hoping somebody might be able to help.
The basics of the issue is that I am iterating through all the files in a folder calling GetVersionInfo() on each. There are…

Andy
- 307
- 4
- 13
3
votes
4 answers
Getting product version from file via cmd/bat
I have a file with Version resource that File vesrion/Product version fields are filled. I need to retrieve Product version via BAT file. Example, I have File with ProductVersion 1.0.1 in the output of bat file I wan't to have string "101" or…

zabulus
- 2,373
- 3
- 15
- 27
3
votes
3 answers
Detecting the version and company name of an exe using jscript
I kwnow how to retrieve the version of an exe using jscript, but I can't find any way to retrieve other info like "Company", "Internal name" or "Product name".
function version_of( file_name )
{
var fso = new…

Alessandro Jacopson
- 18,047
- 15
- 98
- 153
2
votes
1 answer
c# change FileVersionInfo for any file
With FileVersionInfo class is very easy to read file extra information,
but is there any way i can change it?
Thanks.

Fraga
- 1,361
- 2
- 15
- 47
2
votes
1 answer
Argument Exception with GetVersionInfo and powershell
I am trying to use powershell to get the file version of a file. If I right click the file and look at the version, it shows a value. Here is how I am trying to do it:
$path = "MSDE2000A";
$info =…

scottm
- 27,829
- 22
- 107
- 159
2
votes
1 answer
How can I get File Version of basic msi installation package (setup.exe) in MSBuild
I have setup.exe. This is a Basic MSI Installation package. I use InstallShield to create it.
How can I get its FileVersion in MSBuild script?
I cannot use GetAssemblyIdentity task
…

AndreyS
- 365
- 7
- 18
1
vote
3 answers
Powershell list recursively files attributes to csv
I am trying to fill a csv file with all the attributes of the files contained within a folder. I have troubles recovering the fileversion & assembly
$arr = @()
gci C:\Temp -recurse | ? {$_.PSIsContainer -eq $False} | % {
$obj = New-Object…

OwenS
- 233
- 2
- 6
- 20
1
vote
1 answer
How can I get at the file version info of a file when running Delphi on Android?
I'm using Delphi XE7 and I want to log some info about my app to a log file, so I need to port over the GetFileVersionInfo in MSWindows to work in Android. If possible I'd like a general routine that works for any file. I see that there is a Delphi…

Brian Frost
- 13,334
- 11
- 80
- 154
1
vote
2 answers
VB.net Get DLL File Version
Ive got a project that I have been tasked with, to install some Microsoft KB's, but they want me to check that once the KB has been installed, that it has update the DLL and the only way i can see they differ is by the DLL version.
Is there a way I…

Anton King
- 75
- 1
- 9
1
vote
2 answers
C++ VisualStudio GetFileVersionInfo
i downloaded this class http://www.codeproject.com/file/VersionInfo.asp
i use it to get the file information from a few programs i currently run.
It works fine when i want to information from the program i wrote, but i can't get the file…

Laokoon
- 1,241
- 4
- 24
- 47
0
votes
1 answer
Copy file and append the file version to its name
I want to create a batch file which copies the original file in the same directory, and creates a new file, but the new file that has been created have a name of the original file + file version.
I tried different scripts, but can't find the…

user22264282
- 3
- 1
0
votes
1 answer
Get exe file version information from GitHub using c#
I have my file in my GitHub repository. I can get my exe file version only after downloaded that exe file into my local machine.
var file1 = $"https://raw.githubusercontent.com/{get-id}/AutoUpdate/main/hello.exe";
var desktop =…

Bruse
- 7
- 3
0
votes
1 answer
Where does GetVersionNumbersString take data from in Inno Setup?
In order to get the file version I wrote this:
#define FileVersion GetVersionNumbersString("...\Client.exe")
[Setup]
VersionInfoVersion={#FileVersion}
File version is a string in "0.0.0.0" format. In my case it's 5.0.6.5 and it does not…

JConstantine
- 1,020
- 7
- 19
0
votes
3 answers
FileVersionInfo.FileVersion returns ProductVersion?
I am trying to get the file version using C#:
string file = @"C:\somefile.dll";
Console.WriteLine(FileVersionInfo.GetVersionInfo(file).FileVersion);
For most files this is fine, however for some i receive results that are different than the ones…

lysergic-acid
- 19,570
- 21
- 109
- 218