File Properties tab access information vb.net - vb.net

I was currious to how I can access the information cpntained within a files propertie tab (ussualy accessed by right clicking on a file) and display that information within my vb.net application?

Some of them can be found in the FileInfo class.
CreationTime : Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.)
Length : Gets the size, in bytes, of the current file.
...

Related

Godot - Loading a Saved Game

I am trying to create a C# script to save and load the saved games in Godot. I have organized the information of each node (each node that will be saved) in a dictionary (one dictionary is created for each node that will saved) and all the information is saved in a txt document with a format like “gamesaved.txt”.
The system is saving the information without problem in the Project Data folder. The problem is that when I want to load the game saved, Godot appears to have problems to open the File. I use something like this in my “load method”:
saveGame.Open("user://savegame.text", File.ModeFlags.ReadWrite)
and in the next line I use
While (saveGame.GetPosition() < saveGame.GetLen())
to start to read the file and use the information of the dictionaries but system says ERROR!` And says:
“get_position: File must be opened before use”
It appears that the system doesn’t recognize that the File has been opened in the previous line with saveGame.Open()
Do you have any idea what the open method could not be working?

Getting the default icon from a filepath even if the file isn't available

I'm trying to get the associated icon for a file so I can display it in a ListView in my VB.Net code.
However, I can't use the ExtractAssociatedIcon function that all the Googling I've done points me to, because this is for a cataloguing function and the original file is not accessible, so all I have is the file path as a string (from which I can extract just the extension if necessary).
Is there a way I can get the default icon for a particular file extension, even if the file's unavailable?
Thanks

Get notified about new filename of saved PDF document from Adobe Reader DC

Based on data from a SQL database, I dynamically create reports as PDF Report, say costs-2015_01.pdf. This document is automatically saved on a pre-configured (application wide) directory, e.g. C:\reports\costs-2015_01.pdf.
The full path (incl. filename) gets stored in a database table called tblDocuments.
After that, I call acroread.exe with the document path as argument to open the report.
The problematic part is, that the document contains two digital signature fields. If the user signs the document, Reader asks automatically after the signature process for a new file location (Save-as Dialog). Most users are saving the new file under a different name and location instead of overriding the origin file, for example 'C:\My Documents...'.
The problem is: from my calling application, I don't get notified about the new path and can not update the file location in my database document table.
The best solution would be to prevent Reader from asking for a new file location, instead save back the report incl. signature to the origin file.
But that seems impossible. So I'm asking if it is possible to get notified by Reader if the document was saved under a new file name/path.
Users always open PDF files from my application, based on path info stored in tblDocuments. If I can't update the path, users always gets the unsigned - original - pdf document because I'm not aware of the new signed pdf.
What you could try, is to use the didSave event (that's one of the Document Actions in the JavaScript tool), where you would submit the path to the database.
How you would do that, depends on your environment.

list view files in .NET

Can anybody tell how to list view opened files in VB.NET.
The opened files should be seen in list view at the left part of GUI.
You can manually track open files, for example, by keeping a collection that contains their names. Once a new file is open, a new item containing the file path is added to the collection. When a specific file is closed, that item is removed from the collection.
Note: The collection I am talking about can have different data for specific files, not only file paths.
Given you have that collection, you can easily bind it to a ListView control.

Opening a file in my application from File Explorer

I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File Explorer?
Do I grab an argsc/argsv variable in my Application.Load() method or is it something else?
Try this article but short answer is My.Application.CommandLineArgs