473,686 Members | 3,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File version in filesystem

I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileI nfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

May 17 '06 #1
4 17865
Hi,

You will have to P/invoke , do a search in google by "file summary" in this
NG, several implementations have been posted here before.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Emanuele Ornella" <em************ ***@libero.it> wrote in message
news:11******** **************@ 38g2000cwa.goog legroups.com...
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileI nfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

May 17 '06 #2
Look at System.Diagnost ics.FileVersion Info

"Emanuele Ornella" wrote:
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileI nfo.
Well, I do not find anything at all...


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

May 17 '06 #3
Thanks a lot!
ema

May 17 '06 #4
I had the same need, the answer for me was in :

System.Diagnost ics.FileVersion Info finfo =
FileVersionInfo .GetVersionInfo (fullFilePath);
--
Andrew
"Emanuele Ornella" wrote:
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileI nfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

Jun 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2570
by: Xah Lee | last post by:
Just bumped into another irresponsibility in perl. the crime in question this time is the module File::Basename. Reproduction: 1. create a directory containing a file of this name: "cdrom.html". 2. "use File::Basename;", with the line: ($name,$path,$suffix) = fileparse($File::Find::name, ('.html', '.m'));
3
2712
by: Bart Nessux | last post by:
Python may not be suitable for this, but I thought I'd ask the experts: I'm doing a summer project that will attempt to measure exactly how file fragmentation affects disk drive and OS performance. I'd like to use Python for some of this. In particular, I'd like to write a file fragmentor in Python that will randomly fragment x% of files on a NTFS filesystem into y number of fragments. For example, assuming that we start with a 100%...
1
2568
by: Francois Fernandes | last post by:
Hi list! I would like to write a linux c++ program which mounts it's own filesystem within a file, that is located in the Linux filesystem. Now I don't know how to start that. I need basic help on how to write my tool that I'm abel to create a File and "formating" this file, so that I can place "files" in my filesystem in my file. Does anyone know where I could get basic information about writing something like that? Or, maybe how a...
24
2272
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure environment and so we are in the process of imposing a WebService gateway between our application client and the repository. (As a starting point, the WebService won't be a richly featured application server; business rules are still implemented in the...
5
7850
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable suggestions. Is it safe to turn off filesystem caching on every tablespaceon the server(i.e. DIO) ??...
52
7510
by: paytam | last post by:
Hi all Can anyone tell me how can I check that a file exist or no.I mean when you use this commands FILE *fp; if(!fp) //Could not open the file doen't show why it can not open it,may be the file doesn't exist.Now tell me what should I do! Thanks
9
3456
by: Julien Biezemans | last post by:
Hi! Here is the problem: I'd like to restrict local filesystem stream operations to one directory just like a root jail. fopen('/file.bin') would actually open /some/path/file.bin. One goal of this behavior is to prevent Xinclude instructions to point to "out of application directory" files when processed by the XSLT processor, among other things.
9
11352
by: eastcoastguyz | last post by:
I wrote a simple program to continue to create a very large file (on purpose), and even though there is plenty of disk space on that device the program aborted with the error message "File Size Limit Exceeded". The file size was 2147483647. I checked ulimit -a and its set to unlimited. Is this a compiler issue? I would like to see a C code example of how to increase the limit or make it unlimited (if that is a wise thing to do).
2
4577
by: Javier | last post by:
Hello all, I'm trying to remove a hidden file (in UNIX) using the Boost::filesystem library. This is what I have: #include <boost/filesystem/operations.hpp> namespace fs=boost::filesystem;
0
8516
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7599
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6440
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4308
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2945
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.