Windows 10: Script to add the contents clipboard on a particular line of ini file

Discus and support Script to add the contents clipboard on a particular line of ini file in Windows 10 Support to solve the problem; I have O&O Registry Editor. It uses an ini file, to remember the last opened registry key. I would like to have a script that would copy the contents... Discussion in 'Windows 10 Support' started by phrab, May 29, 2020.

  1. phrab Win User

    Script to add the contents clipboard on a particular line of ini file


    I have O&O Registry Editor. It uses an ini file, to remember the last opened registry key. I would like to have a script that would copy the contents of the clipboard to the line called:
    LastAddress=

    I've researched modifying ini files, but don't know the way to copy & insert the clipboard contents to this ini file. Can anyone help?

    Thank you in advance!

    :)
     
    phrab, May 29, 2020
    #1
  2. nuva Win User

    Snippet C#: INI Files

    This code is great, i'm going to use this in one of my programmes *Big Grin Script to add the contents clipboard on a particular line of ini file :D

    is it possible to make a list of all sections in the ini files?
     
  3. Snippet C#: INI Files

    GetSections() will return a string[] of section names. If you want the values too, just do a for or for loop to enumerate them. For example:

    Code: foreach (string section in ini.GetSections()) { Console.WriteLine("[" + section + "]"); foreach (string key in ini[section].GetKeys()) Console.WriteLine(key + "=" + ini[section][key]); Console.WriteLine(); }[/quote]
     
    FordGT90Concept, May 29, 2020
    #3
  4. Mike vd M Win User

    Script to add the contents clipboard on a particular line of ini file

    Office Clipboard: Work Content not supported (WIP)

    Hi Rick,

    The problem only occurs using the Office Clipboard (that is capable of remembering more copy actions), not the Windows Clipboard. And i have followed the WIP steps. And the issue is that i cannot find how to allow the Office Clipboard to allow Work content.
    As the default Windows clipboard does work.

    Regards,

    Mike
     
    Mike vd M, May 29, 2020
    #4
Thema:

Script to add the contents clipboard on a particular line of ini file

Loading...
  1. Script to add the contents clipboard on a particular line of ini file - Similar Threads - Script add contents

  2. Use clipboard contents in shortcut target

    in Windows 10 Network and Sharing
    Use clipboard contents in shortcut target: Hello, I need to have the part of the target in my shortcut change automatically with my clipboard contents. How could I achieve this? https://answers.microsoft.com/en-us/windows/forum/all/use-clipboard-contents-in-shortcut-target/5824a36f-5f83-48a6-aa5f-f559aa8487b2
  3. Desktop INI and Autorun

    in Windows 10 Support
    Desktop INI and Autorun: So... I have multiple external hdds. I have autoruns on them to generate Labels and Icons. That is working properly. I have multiple sub folders on those hdds. I need 2 different types of Desktop INIs that I cannot seem to get working. **NOT Working** I need the parent on...
  4. Viewing Clipboard Contents

    in Windows 10 Customization
    Viewing Clipboard Contents: When I hold the windows key and hit "v" I do not get a display of the clipboard contents. I am using Windows 10 and a Chrome browser. https://answers.microsoft.com/en-us/windows/forum/all/viewing-clipboard-contents/4cdb418f-28b0-4d25-9604-7ef44ada10aa
  5. Office Clipboard: Work Content not supported (WIP)

    in AntiVirus, Firewalls and System Security
    Office Clipboard: Work Content not supported (WIP): When i try to use the Office Clipboard with an corporate file i cannot copy the content to the clipboard, the error is: Item nog Colleced: Work content not supported." I know this is related to Windows Information Protection, but the issue is how to do allow the clipboard...
  6. How to add particular insert to post.

    in Windows 10 Support
    How to add particular insert to post.: This may be a dumb question, but I've tried to figure out how to do the following. [img] 132246
  7. how to view clipboard contents?

    in Windows 10 Customization
    how to view clipboard contents?: how to view clipboard contents? https://answers.microsoft.com/en-us/windows/forum/all/how-to-view-clipboard-contents/66a3b49c-d3b5-42d6-88eb-15b8896e5b53
  8. PowerShell script to compress folder contents to cabinet file (.cab)

    in Windows 10 Software and Apps
    PowerShell script to compress folder contents to cabinet file (.cab): The script takes the contents of a folder (including all its subfolders) and creates a cabinet file (.cab), using the Windows native makecab.exe command. Get it here: Create-CAB.zip The script can be run, from either within PowerShell or from a shortcut (to find out how to...
  9. IE - How to delete content with a batch/script file?

    in Windows 10 Software and Apps
    IE - How to delete content with a batch/script file?: I've looked all over and was wondering if I could get some help here. I work where there are public machines, and we tell people NOT to use Internet Explorer, BUT only 10% of people actually adhere to this. That's life. I've noticed that with IE, when the computer crashes,...
  10. Add Copy Contents to Clipboard to Context Menu in Windows 10

    in Windows 10 Tutorials
    Add Copy Contents to Clipboard to Context Menu in Windows 10: How to: Add Copy Contents to Clipboard to Context Menu in Windows 10 How to Add 'Copy Contents to Clipboard' to Context Menu in Windows 10 The Copy Contents to Clipboard context menu item will allow users to copy the contents of a single .bat, .cmd, .css, .js, .log,...