Windows batch read value from ini file


  1. Posts : 28
    Windows 7 ultimate 32bit
       #1

    Windows batch read value from ini file


    Have a little problem read about import value from ini file.. are the easy example to get 2 - 3 value ex.

    local_patch=c:\temp\
    backup_patch=g:\backup\
      My Computer


  2. Posts : 7,351
    Windows 7 HP 64
       #2

    Can you explain what you want.
      My Computers


  3. Posts : 28
    Windows 7 ultimate 32bit
    Thread Starter
       #3

    A small script that moves the user's files to another device. And thought to import path from an ini file ... so the user does not have to go through the source of the backup script to change values
    No problem when it's just a value but want some other values that can also be changed .. "import value from ini file as batch can echo"
      My Computer


  4. Posts : 7,351
    Windows 7 HP 64
       #4

    Under DOS I've made many batch files. At that time they were very useful. They are still very powerful, but not very used under Windows OS.
    You won't find many people here (at Forum) that use or know how to write complex batch files.
    You probably find somewhere else. Sorry.
      My Computers


  5. Posts : 1,363
    Win7 pro x64
       #5

    Hynt - Please use complete sentences. I've read through your posts several times but cannot understand what you want.
      My Computer


  6. Posts : 28
    Windows 7 ultimate 32bit
    Thread Starter
       #6

    Sorry my English is not så good using Google translate. I want to read value from a text file in batch
      My Computer


  7. Posts : 7,351
    Windows 7 HP 64
       #7

    You can use type c:\.... to read a txt file (ini files are normally txt)
      My Computers


  8. Posts : 3,788
    win 8 32 bit
       #8

    You could use the free autoitthis has built in function not found in batch there is plenty of help and examples https://www.autoitscript.com/site/autoit/
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:35.
Find Us