Replacing Comments in file properties

I have successfully retrieved the comments of a file using the following code
    FileName = gstrDir & "\" & gstrFile
    vFile = Mid(FileName, InStrRev(FileName, "\") + 1&)
    vFolder = Left(FileName, Len(FileName) - Len(vFile))
    With CreateObject("Shell.Application").NameSpace(vFolder)   'Reference Microsoft Shell Controls And Automation so
        Do:  sDetail = .GetDetailsOf(.Items, i)                             
'that the Variant variables can be dim'ed as Strings
             If LenB(sDetail) Then i = i + 1& Else Exit Sub
        Loop While StrComp(sDetail, "Comments", vbTextCompare)
        Me.txtOldComments = .GetDetailsOf(.Items.Item(vFile), i - 1&)
    End With
Now, How do I (with similar code) replace the comments with new comments?
Thanks

I dont think its related to windows XP.
Please post the same in scripting forums.
Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread.

Similar Messages

  • How to transfer file from ipod touch to i tunes. i have files in my ipod , ut itunes is  new so its telling if u sync the ipod all the files will be replaced but no files in the itunes.. so kindly help me how to transfer the files  from i pod to itunesb

    how to transfer file from ipod touch to i tunes. i have files in my ipod , ut itunes is  new so its telling if u sync the ipod all the files will be replaced but no files in the itunes.. so kindly help me how to transfer the files  from i pod to itunes......

    Some of the information below has subsequently appeared in a document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was designed for you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchased content.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
    - Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
    - 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141 - dates from 2008 and some outdated information now.
    Copying Content from your iPod to your Computer - The Definitive Guide - http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/ - Information about use in disk mode pertains only to older model iPods.
    Get Your Music Off of Your iPod - http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod - I am not sure but this may only work with some models and not newer Touch, iPhone, or iPad.
    Additional information here https://discussions.apple.com/message/18324797

  • Editing metadata in the file properties window

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask. Important is maybe that I am running Adobe Acrobat and Reader simultaneously on the same machine.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. Is this because of the new 9.3.3 Reader update? I updated so many times and never anything like this happened. How can I turn back to the old behavior?
    I do not want to edit those information in Acrobat by choosing File and then propertis because it takes much more time because i have to open the file (if it is one its fine) but if there are more where the same info shall be in I'd like to use the built in function of the properties sheet in windows.
    With kind regards
    DragJo

    At first I asked that question by mistake in the wrong forum so I put in it here. But it has been answered there http://forums.adobe.com/message/2973589
    so I mark this as answered, too.

  • Editing metadata in the file properties

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. So my question is why did this happen? Shall this be a Feature of the new 9.3.3 update? If yes I just can say it isn’t. And my question would then be: How I can turn back to the old behavior?
    With kind regards
    DragJo

    Thanks,
    I just ran the Acrobat repair installation and I got the expected function back. In addition it does not matter any longer which icon I click (reader or acrobat) to open Acrobat. The reason for having both installed is just that I needed a "pdf viewer" from the first minute after having installed the OS and installing Acrobat needs much more configuration in my case then just the "tiny" Reader equivalent. The best thing: I did not realize any other problem.
    Kind regards,
    DragJo

  • How do I set file properties (win XP) ?

    Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
    Thank you !
    J.K.

    Hello,
    It is not possible with advanced file I/O LabVIEW VIs.
    There is a possible workaround by using low level Windows functions in a dll.
    Perhaps the easier would be to set your properties at the top of your file.
    You will find some explanations here :
    http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
    regards
    Marc L.
    NIF

  • Can you edit file properties using Labview?

    Except for the file attributes like 'read-only' and 'hidden', Windows 2000 & XP also have file properties like 'keywords', 'comments' and 'description'.
    Is there any way that I can edit these properties in Labview?

    RichElswick wrote:
    nope, we never got that far and I am no longer on that project.
    And it would be a bitch to implement. Basically those properties are implement using propertysheet handlers. That are shell extensions that can be installed in Windows and in the registry added to one or more file types. On loading the property dialog the shell (basically only an Explorer thing) sees that for that specific file type there are property sheet handlers registered and then loads them as an extra property sheet into the dialog.
    There is no common API to retrieve and lets forget about changing the information those property sheet handlers deal with programmatically. And every property sheet handler retrieves the actual properties according to his own private information, such as image properties in JPG files but possible also extra information in the meta data of a file on advanced files systems such as NTFS (the security property sheet for instance).
    So you would have to create a Windows dialog, load the according property sheet handlers into it and then have the user deal with that interactively. I doubt that this is what you want.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Report file properties dialog on MS Vista

    Post Author: DCox
    CA Forum: General
    My company runs and distributes CR v11.x as part of our application currently running on XP.  We are migrating our application to Vista.  Our application, written in PowerBuilder v10.5, reads some of the user-defined file properties of the report (.rpt) file via the OLE API.  On XP, the specific properties I need to see are on the Summary tab of the properties dialog you get by right-clicking the .rpt file in the XP Windows Explorer.
    Our application uses the Title, Subject Keywords and Comments properties in XP to build a Tree of available reports in our application.  These properties are not displayed in Vista's property dialog for CR report files built on XP and copied to Vista.  Is there a version of CR that will display these properties?  Our application retrieves these properties on Vista but they are not visible in the Vista properties dialog.
    Also, is there information about the CR API (for Vista) that will show me how to access the MS OLEDocumentProperties SummaryProperties and CustomProperties?
    Any assistance is appreciated.

    That is an excellent find. I would definitely let Apple know.
    http://www.apple.com/feedback/iphone.html
    http://www.apple.com/feedback/itunesapp.html

  • Retrieve detailed file properties

    Clicking "Properties" in File Explorer displays many useful properties of the selected file. I can access some of these in VB by using the "GetFileInfo" method. But that method does not expose the properties shown on the "Description"
    tab in File Explorer.
    How can I access this information from my VB code?
    Thanks for your help.

    I found that you can get these properties using the Shell32 dll.  You can get the File Name, File Size, File Type, Modified Date, Created Date, Accessed Date, Author, Title, Subject, Catagory, Comment, and Author properties/attributes from  Plain
    Text files,  RichText files,  Word Documents,  Excel Documents, Jpg Images, and any other types you can right clicking and viewing the properties on.
     You need to add a reference to Microsoft Shell Controls And Automation on the
    Com tab of the Add Reference dialog window.  This example only requires 1 RichTextBox and 1 Button added to the Form.
    'Add a Reference to (Microsoft Shell Controls And Automation) on the (Com) tab of the Add Reference Dialog Window
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    RichTextBox1.Text = ""
    Using OFD As New OpenFileDialog
    OFD.Multiselect = False
    If OFD.ShowDialog = DialogResult.OK Then
    Dim FolderPath As String = IO.Path.GetDirectoryName(OFD.FileName)
    Dim FileName As String = IO.Path.GetFileName(OFD.FileName)
    Dim objShell As Shell32.Shell = CType(CreateObject("Shell.Application"), Shell32.Shell)
    Dim objFolder As Shell32.Folder = CType(objShell.NameSpace(FolderPath.ToString), Shell32.Folder)
    Dim sb As New System.Text.StringBuilder
    'Standard Properties
    sb.AppendLine("File Name: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 0))
    sb.AppendLine("File Size: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 1))
    sb.AppendLine("File Type: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 2))
    sb.AppendLine("Modified Date: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 3))
    sb.AppendLine("Created Date: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 4))
    sb.AppendLine("Accessed Date: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 5))
    'Extended Properties
    sb.AppendLine("Author: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 9))
    sb.AppendLine("Title: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 10))
    sb.AppendLine("Subject: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 11))
    sb.AppendLine("Catagory: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 12))
    sb.AppendLine("Comment: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 14))
    sb.AppendLine("Author: " & objFolder.GetDetailsOf(objFolder.ParseName(FileName), 9))
    RichTextBox1.Text = sb.ToString
    End If
    End Using
    End Sub
    End Class
     Here are 2 files i filled the extended properties of and opened.
    If you say it can`t be done then i`ll try it

  • Is it possible through labview to set and read window¿s based file properties​?

    Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types such as image format types jpg, bmp and tif have additional associated properties such as: title, subject, author, and comments. Is it possible through labview to read and set these properties programmatically?

    Hpopenoe wrote:
    > Any file in XP operating system has file properties associated with
    > it, such as, size, location, when the file was created, modified and
    > last accessed. I know that Labview has the ability to access the size
    > and modified property. Other file types such as image format types
    > jpg, bmp and tif have additional associated properties such as: title,
    > subject, author, and comments. Is it possible through labview to read
    > and set these properties programmatically?
    Well, you can most probably do that by calling Windows API functions.
    Note however that the properties you mention are not generic Windows
    file properties but file specific internal attributes. Explorer does at
    least in XP handle some of those properties and shows them to the user
    but does so with internal file type handlers to extract the properties
    from the file.
    I'm not sure those file type handlers are actually available for other
    applications than Explorer without quite some work. If they are
    available they are certainly not part of the standard Win32 API but most
    probably part of the Windows shell component and I would guess not just
    through normal API function calls, but through the shell namespace
    enumeration, which is built on COM interfaces, something you only can
    call from standard programming languages, most of them are done in C++
    (and if you are a little more persistant in standard C).
    So you are likely to need to either write your own DLL doing the nitty
    gritty work of calling the shell interface and using that DLL in LabVIEW
    or find an Active X component which does the work for you. No doubt
    there is such an Active X component somewhere but how good and expensive
    is always a big question.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • CS4 Matching Metadata to File Properties

    Is there a way in Bridge's Metadata to either see or modify Window's File Properties?  Specificaly Subject or Comment?
    I am scanning old family photos and what to document what is written on the back plus who is in the photo.  I know I can tag them with the people, but that doesn't really tell me who is who when it is a large group.... I was hoping not to clutter the "title" with the place, people, event, and other comments.
    I will be sharing these photos with people that do not own Bridge, so Window's file properties is where I need to have the information stored.  Thank you!

    If you click on file/file info you can enter what ever you want in description.  This field and keywords (tags) can be read in Windows Explorer.

  • Replace an existing file with a new one

    This is probably a very simple problem. I have a script that is making an XML document. I am sucking information out of a database and exporting it as a XML file. The script runs just dandy except when I want to update the text file I receive an error along the lines of "the file already exists".
    What code do I use to replace an existing file?
    tell application "Finder"
    set theFile to "donky.xml" as string
    set theFullName to mySavePathAsText & theFile
    set theNewFile to make new file at myPath with properties {name:theFile}
    write myFinalText to file theFullName
    set the extension hidden of theNewFile to false
    end tell
    I assume I would use the "replacing yes" command but that is not working or I am not doing it right.
    Any help much appreciated.

    Hello
    Two things.
    • 'open for access file _path with write permission' will create new file at the path given in _path if it's not present.
    • 'set eof' command will clear the existing contents of the given file, which lets you replace the contents.
    So you may try something like this. (Finder is only used to set 'extension hidden' property of the file)
    Good luck
    H
    -- SNIPPET
    set theFileName to "donky.xml"
    set theFullPath to mySavePathAsText & theFileName
    try
    set fref to open for access file theFullPath with write permission
    set eof fref to 0 -- clear the existing contents
    write myFinalText to fref starting at eof
    close access fref
    on error errs number errn
    try
    close access file theFullPath
    on error --
    end try
    error errs number errn
    end try
    tell application "Finder"
    set extension hidden of item theFullPath to false
    end tell
    -- END OF SNIPPET

  • How to modify a file .properties

    Hi,
    I wrote this function in order to modify the values in a generic property file :
        private boolean modifyPropertyValueForAkey(String KeyValue, String propValue) {
            // 1.  acquisire il file properties
            Properties prop = new Properties();
            InputStream inStream = null;
            try {
                inStream =  Computer_STATUS_ForNetworking.class.getResourceAsStream (nameOfThePropertyFile);
                prop.load(inStream); // abbiamo caricato prop (usando inFil)
                // a questo e' servito inStream
                inStream.close(); // chiuso il file per leggere
            } catch (IOException ex) {
               System.out.println("modifyPropertyValueForAkey (IOException 111) " + ex);
            // ======================
            //2.   bisogna avvisare che la modifica non si puo' fare
            if (prop.containsKey(keyValue) == false) {
                return false;
            // ======================
            // 3.  scrivere (= salvare la modifica nel file properties)....
            OutputStream outFil = null;
            try { 
                outFil = new FileOutputStream(nameOfThePropertyFile); // salvato il file
            } catch (FileNotFoundException exep) {
                System.out.println("modifyPropertyValueForAkey (FileNotFoundException 222) " + exep);
            try {
                // key = key_database_path_omTheServer
                prop.setProperty(KeyValue, propValue); // assegnare il valoe
                prop.store(outFil, "---No Comment---");   // salvare la modifica
                // errore la modifica non e' effettuata !!!!!!!!!!!!!!!!!!!!
                outFil.close(); // chiuso il file per scrivere
            } catch (IOException exeption) {
                System.out.println("modifyPropertyValueForAkey (IOException) " + exeption);
            return true;
        }//modifyValuesInApplicationNetworkingConfiguration()I did it following a pattern that I found in the tutorial.
    It looks to me to be correct, but it doesn't work..
    What it is wrong there ?
    I need some help to fix this problem.
    thank you
    regards
    tonyMrsangelo

    hi,
    thank you for answering me
    the function doesn't work because, when the code is executed, the
    value of the property (for the key that demand to be modified) doesn't change.
    I am not sure about the part of the function that fails
    (I know only that no exceptions are raised).
    I run this function debugging the program, and
    I realized that the .. the bug, in the program, come because the value of
    the property that is expected to be changed it is not.
    I made several tries to learn more about the fault....
    but all I can learned is that, when I open the property file (using the
    NetBeans IDE) the value of the property doesn't change..
    thank you
    regards

  • Itunes will not recognize file properties

    I cannot get Itunes to recognize file properties (comments/composer etc).
    I will change a group of files that I have saved in a certain location, eg. songs from a roadtrip. I then change a certain property in those files ie composer, or comment, or something else that is included in Itunes' file information.
    Then I open I tunes, and save that folder to itunes. Itunes does not recognize the properties. I cannot do a smart list, based upon the properties saved.
    Any suggestions?
    Thanks in advance

    iTunes 7 is having this problem with my iPod 30GB Video. It worked at first, but the system hung while attempting to update my iPod to 1.2. After rebooting it never recognized my iPod. I've since checked my iPod out on my laptop and my work computer and it works fine at both of those. I've finished the update to 1.2 on my laptop, but it still doesn't work on my main computer.
    I've tried uninstalling iTunes, using the Windows Install Cleanup software, deleting files from temp directories, all of the stuff that the troubleshooting docs suggest on this site. None of it has gotten that computer to recognize my iPod again. I am not about to reinstall windows so what is my next option?

  • File Properties: Document Kind... Where Does it Come From?

    In Bridge's metadata subsection "File Properties", what exactly
    is "Document Kind"? Is it synonymous with the file's mime type?
    I've read through Adobe's XMP specification document (http://partners.adobe.com/public/developer/xmp/sdk/index.html) and I've seen many of Adobe's XMP schemas and data elements defined there, but I can't find where "Document Kind" is defined.
    The closest I come is page 39 where the XMP specification notes that the dublin core schema has a property called "format" with a value of "MIMEType". Is "dc:format" synonymous with "file properties: document kind"?
    Thanks for any help.

    dont mind but please tell me how do u communicate with computer ports...
    u can mail any material at [email protected]
    thanks

  • I had two files named graphics and I replaced one graphics file with another which was the wrong one.  Can I undo my replacement?  I move the wrong one, which was on my desktop into another one and that is when it as me if I wanted to replace the file.

    I accidently replaced a file with another.  Can I undo my action? 
    I had two files named graphics.  One was on my desktop and another was within another file called solitarie.  I move the one on my desktop (wrong file) into the solitarie file and was asked if I wanted to replace the graphics file in the solitarie folder (the correct one).  I said yes accidently and then remembered that I had made a mistake.  If I use undo, it only move the wrong file back to the desktop.  Is there an undo of replace?

    Sorry, but's that's why you get the warning. "Replace" means just that - the new file over-writes the old one. There is no undo.

Maybe you are looking for

  • Dynamically adding a repeating subform is not working in Guided Procedures

    Hi, I created an Adobe XML form file (.xdp) with a button and a subform. In the button click event I wrote javascipt to add a new subform. This is working fine from the PDF preview with in the Adobe Live Cycle Designer.  Then I used this template in

  • RSS widget in iWeb. Can someone help?

    Hi There, I am having an issue with iWeb and the RSS widget. Having created a website for my company, i wanted to put our twitter feed on the home page using RSS. Now obviously twitter have stopped making it easy to use the RSS service, however i man

  • I downloaded Lion to my iMac and now can not get on the internet

    I cant figure what i have done wrong  my other computers are working fine.

  • Extrnal widescreen monitor problems

    Hi I Have recently bought a 19 inch widescreen monitor Acer AL1916w and the resolution setting is 1440 x 900 which comes up as well as the name of the monitor when it is plugged in, however it doesnt expand the full size of the screen it 's about the

  • Refresh issue in read only VOs

    Hi, We have a create/edit page where user creates a particular entity say A. There is another search page where one of the search criteria is the entity A. This search criteria is shown as a dropdown in this page. The problem is, once the entity is c