View / Modify File Metadata
Oct 4, 2007
I am developing desktop applications using .NET 1.0,1.1 thru VS 2002. I need your help. I want to view/modify file metadata like Author, Title, Company, etc. that file may be a txt / doc / exe / xml / html / pdf any format... I found an example for this in CodeProject site. In that project they give dsofile.dll and source code for viewing/modifying file metadata. I tried to register that dll using regsvr32.exe (regsvr32 dsofile.dll). But it couldn't be registered. even i tried to download setup file from microsoft site but it was not found. Please help me to view/modify file metadata info.
View 9 Replies
ADVERTISEMENT
Nov 2, 2011
I'm looking for a way to programmatically view and/or modify the permission for an existing share. I'm speaking of SHARE PERMISSION, not NTFS PERMISSION, I know how to view/modify ntfs permission.
View 2 Replies
Feb 1, 2010
I am currently trying to create a simple application that will show me the metadata for a wmv file (I'm not trying to get the data for any other video file type at the moment) but I am having some trouble finding a way of doing this.
I have Googled and I have found some downloads that you can get to do this for you, but I would prefer to do this without having to use any third party components. I would have thought that this would be possible maybe through windows media player component or something.
View 1 Replies
Jan 9, 2009
I have some PDF files that my application generates and stores on my machine. Now each file has a persons name and address string related to it in a database. E.g.
Filename | FirstName | Email
The files can be selected within the application UI and emailed out. Now I don't want to have to hit the database each time since there are alot of files. So , how embed the two strings FirstName and Email into the file itself, so when I load it into a FileInfo object there is someway to access the extra data.
View 1 Replies
May 29, 2009
I want to read the meta data from a movie file and place the result in to a textbox.I've googled it and found no good samples for vb.net =( The data I'm interested in are the bitrate and the resolution and the extensions I'm interested in are .wmv, .avi and .flv the extension isn't known when the program loads because the movie is going to be inputted by the user..
View 1 Replies
Nov 27, 2010
I'm very new here and I wonder if you can help me with this.I need to get the metadata from an image file, the basic data like Image Type, Image Width,ColorModel, I already found out how to get but there are some that i dont have a clue how to retrieve:
Pixels Depth/Colors , Creation Software (for example Adobe Illustrator ) and ImageResolution (in pixels/dots per inch)
View 2 Replies
Oct 8, 2010
Does VB 2010 offer native support for reading and modifying ID3 metadata in MP3 files? A brief search through MSDN shows me nothing, and I see someone says he had to write his own library of code for it. But that was some years ago, when you had to write code to access JPEG Exif metadata, and I know that's changed with the Image class and the GetPropertyItem method; so I'm hoping MP3 files have their own methods and properties now for this.
View 4 Replies
Aug 11, 2010
I'm editing jpg metadata and when I'm finished the file is less than half the size but ok, IE I can see modified tags correctly via windows explorer. But if I edit the same file again its down to 16k and corrupted. The image being edited is the standard desert.jpg found in the picturessample pictures directory.
I'm using the following
Public Sub Put_FileMetadata(ByRef glb_UserArray() As String, ByRef glb_SecurityArray() As String, ByRef glb_InputParms() As String, ByRef glb_InError As Boolean, ByRef glb_ErrorNumArray() As Long, ByRef glb_ErrorDescArray() As String)
On Error GoTo error_handler
' Initialise Variables
[Code] .....
View 2 Replies
Sep 15, 2009
i added its reference to the project i added also the dll to the assembly error 354:file metadata 'microsoft.sharepoint.workflowactions.dll' not found what shall i do in this case
View 2 Replies
Apr 19, 2010
In windows explorer on Windows 7 (and Vista I believe), when you click on a file the bottom pane shows the files metadata. What I am particularly interested is the files Tag. If you click into the tag field, Windows will give you a list of tags. The list appears to be random and incomplete. So I have two questions. Is there a way to retrieve a list of a file tags on the system and is there a way to add to the list of tags in the Windows file pane?
View 1 Replies
Jan 4, 2011
How do I Edit and Save Image EXIF / Metadata / FileInfo without using an external DLL?
Project:I'm building an app for personal use to rename, retag, and organize the apocalyptic quantity of images I host on my personal website. As I have been collecting funny pictures and such for several years, there is no real rhyme or reason to the file naming conventions. Ergo, Image0001.jpg needs to be renamed to a descriptive filename, and the Metadata fields need to be filled in.
The desired process will take an existing jpg, gif, png, tiff or bmp and do the following:
load image into memory
convert bmp files to jpgs if needed (for a smaller file size, mostly)
load image tags into ImageData Structure (see below)
[code]....
View 1 Replies
Jan 3, 2011
Project:I'm building an app for personal use to rename, retag, and organize the apocalyptic quantity of images I host on my personal website. As I have been collecting funny pictures and such for several years, there is no real rhyme or reason to the file
naming conventions. Ergo, Image0001.jpg needs to be renamed to a descriptive filename, and the Metadata fields need to be filled in.The desired process will take an existing jpg, gif, png, tiff or bmp and do the following:
[1] load image into memory
[2] convert bmp files to jpgs if needed (for a smaller file size, mostly)
[3] load image tags into ImageData Structure (see below)
[4] load file data into ImageData Structure (where needed)
[5] display image and tags for user to edit (In a Picture Box and several Text Boxes)
[6] allow editing of fields and renaming of the file
[7] write the changes to the image file
[8] go to next file.
Example:
[1] Load Image0001.jpg. Populate ImageData Structure fields.
[2] Type in Description: "lolcat ceiling cat sends son".
[3] ImageData.FileName changed to "lolcat-ceiling-cat-sends-son.jpg".
[4] ImageData.Name, .Keywords, .Title, .Subject, and .Comments changed to "lolcat ceiling cat sends son".
[5] Save file with new filename and save all new tag fields.
(Later, I will also be using SQL to build a referential database with links to the online copies of these files to allow for searching by keywords, subject, filename, etc, but that's another layer that's much easier than this one. At least to me.)
Problem:So far, several days of research have yielded almost no measurable progress. Information has apparently been inexplicably hidden behind a bunch of unexpected search keywords. Current Code as is:
Imports System.IO
Imports System.IO.Path
Imports System.Drawing.Imaging[code]........
View 2 Replies
Jun 13, 2010
i am working on an application called logonscreenchangerxp i made my program and when i run it on xp virtualmachine i get errors the program is made using vb 2008 and using .net framework 2.0 i am not able to get full permissions to modify boot.ini file and a regisrty value and to delete a file
View 5 Replies
Jun 9, 2010
If i use a stream to modify few bytes in a file without changing the total number of bytes
does the stream rewrite all the file even if just few bytes have been replaced?
View 1 Replies
May 4, 2011
I am developing an application that Monitors a specific folder for file changes such as modify deletion, update, etc. The only problem I have is , the application doesn't fire up File events.
Here is the code:
Imports System.IO
Imports System.Diagnostics
Public Class Form1
[CODE].............................
View 8 Replies
Sep 2, 2010
I have (with help from you) got 'full' control of Canon image capture and processing with feature recognition, and USB cam capture including frame modification on the fly. I now want to read an avi file and modify it on the run. I have found several C# and C++ routines as a good basis, (Especially the steganography example) if only I could successfully convert them. Unless I understand what I am doing wrong I don't stand a chance. So - start with the absolute basic Open/Close avi - This fails - Protected
memory eror
[Code]...
I can hardly think about streams til I can open a file, but when it is functional to the access to frames I'll submit a final copy for othersto use
View 9 Replies
Feb 19, 2009
I'm trying to read an entry in an ini file; if it reads "ShowInvoiceRequiredMsg=NO" then my program is going to give the option to change that line to "ShowInvoiceRequiredMsg=YES". My code below reads the file and picks up if the option is set to 'NO' but I can't seem to modify that line to change it to 'YES'....... (in red is where I'm trying to modify this text)
Dim file As System.IO.File
Dim reader As System.IO.StreamReader
Dim line As String
reader = file.OpenText("c:file.ini")
[code].....
View 1 Replies
Nov 3, 2011
I have a CSV file with many rows in which I need to update/replace column four's value using VB.NET. There are no headers on the columns so the loop can start on row one.
infile.csv
"value1","value2","value3","value4"
After much googling, there are lots of examples on how to read and write CSV files, but none quite what is needed. I know there are multiple ways to accomplish this task, but a requirement is that it's done with VB.NET.tFinal code ported from Marco's C# answerPrivate Sub CSVmod(ByVal strFileName As String, ByVal newFileName As String)
Dim strLines As String() = File.ReadAllLines(strFileName)
Dim strList As New List(Of String)
Dim strReplace As String = "test"
[code]....
View 1 Replies
Aug 27, 2011
I have an application using Visual Basic 2010 Express. Basically I load an XML file into a datagrid and then wish to modify it. Now the following code works fine:
Private Sub Modify_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Modify.Click
Dim da As New XmlDataDocument
da.Load(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "/events.xml")
Dim path1 As String = "/calendar/event/title[text()='" & DataGridView1.CurrentRow.Cells(0).Value.ToString & "']"
Dim path2 As String = "/calendar/event/text[text()='" & DataGridView1.CurrentRow.Cells(1).Value.ToString & "']"
[Code] .....
Now the modify button does what it is intended to do as far as load the "title" and the "text" elements into the text boxes. However I want to load the other attributes into the text box. I.E. date, timeStart, timeFinish etc. Also, the just of this is to be able to modify an xml file without going into the xml file using a text editor.
View 8 Replies
Jan 7, 2012
I want to change the file from resources. When radiobutton"Put new namirnica" checked=true, by clicking on button "save", i want to open .txt file in resources file that is loaded into listview1 and fill with data from textbox1,textbox2,textbox3,textbox4,textbox5,textbox6.
else When radiobutton"modify existing Namirnica" checked=true,I wish that selected index from listview1, replace with data from textbox1,textbox2,textbox3,textbox4,textbox5,textbox6. by clicking on button "save"
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim a As String = My.Resources.Hrana
[Code].....
View 6 Replies
Jun 19, 2011
i have text file more than 2000 row like these:
[Code]...
and i want to find the avarge of the 1440 row ,start from down to up and find the max,then find the avarge for each 30 row and put them besid the data and find the max of these avarge like this max(od data)=---- max(averge)=-----
View 1 Replies
Apr 15, 2012
Is it possible for me to modify this area1.txt format to format as in area_modify.txt file take a look txt file for diffrent.... the area1.txt just simple report.
View 14 Replies
Aug 2, 2007
create an app that can modify file attribute like hidden, archive, read-only.
View 3 Replies
Apr 19, 2010
I am getting the above error when I attempt to run setup.exe as a non-administrator on Windows XP (sp3). This is for an application I created, and I would like to know what permissions the users need to install the application and updates. I am trying to understand the security issues when installing a vb.net desktop application, the .NET framework, and other resources such as the visual studio crystal reports engine. Any good resource which explains how this works for different operating systems and privilege levels?
View 6 Replies
Dec 18, 2009
I want to modify the third column of an existing excel file. The problem with below code is a new file is prduced with the new values in Column C and erases all other values in the orginal file. I want to update the orginal file with the new values.
Public oExcel As Excel.Application
Public oBook As Excel.Workbook
Public oSheet As Excel.Worksheet
[Code]....
View 4 Replies
Apr 8, 2010
I have text files with X Y Z data. There are three columns, one each for X, Y and Z and the files are tab delimited.The value of X is constant over a (repeating) range of Y. Z is the dependent variable.
For example:
0 1 44
0 2 32
0 3 22
[code]....
I need something to take this file and break into multiple tab-delimited columns. In the output, I would like the initial range of Y to be the first column (ie 1 to 4). Then, the second column should have the Z values for that domain (X=0 in above example). Then, the next column should have the Z values for the next domain of Y (i.e. 1 to 4 again, but now for X=5 in above example) and so on. Also, I'd like the first line value in each of the new columns containing Z values to be the X-value they were originally associated with.Thus, I'd like the output file to look like
Y 0 5 9
1 44 66 51
2 32 11 72
[code]....
View 2 Replies
Jan 6, 2011
I currently have a nightly build system running as a windows scheduled task, calling at batch file, that works sort of like this: Check out the latest revision from subversion Modify the AssemblyInfo.vb file of the main executable and the librarys to set the version number to 0.0.0.revision Invoke MSBuild to build everything (including the installer) Upload the installer and a log of the build to an FTP server This works ok, but step 2 is dirty and fragile, and I can't imagine that this the only way to do what I want. Any ideas?
View 1 Replies
Nov 29, 2010
I am currently working on an application which requires reading, writing and modifying data from a TEXT file. I have searched a lot but was not able to find a simple way to achieve this. I have to use a standard VB form with textboxes for this text file operations.
View 2 Replies
Nov 30, 2009
1. I have a button, and registry entries, each tell me what version and where it is located.
Example : (reg path = HKEY_CURRENT_USERSoftwareTNL)
Path = c:program filesmyprogram
Regan = us
The program its launching is called caw.exe. but it requires diffrent locations in a file named realms.*** file to work properly. Basically if Regan = us, do this, else if regan = eu do that, else if regan = tu do this. I need to basicly erase everything in that file and replace it, the file location is located under :
"PATH"/data/en"Regan"/realmlist.***
The PATH and Regan need to be replaced with correct paths.
2. After it has finished modifying the File it saves it and then Launches
Path/caw.exe
View 19 Replies
Mar 26, 2009
Dear Friends: I have some files in 1 folder directory that show "XML Configuration File" under type. But none of these files show the extension .config. The directory filesare like C0150,C0150_new,C0200,C0200_new etc. I need to change only 1 attribute of each of these files. I need to write a VS.Net project to do this. I have to send the .exe file(from bin directory of this VS.Net project) to my client and they will just double click the .exe file and it will change that attribute in all the .config files.
The C0150 file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
[code]....
View 2 Replies