Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: GET the values from ini file  (Read 5244 times)

0 Members and 1 Guest are viewing this topic.

kousei2040

  • Guest
GET the values from ini file
« on: August 04, 2008, 12:48:12 AM »
Hi,

I need to get a value from an ini file then add use the value to run a program

e.g

[Sample]
SourcePath=\\server\directory\

how can i get the value of SourcePath?

devcom



    Apprentice

    Thanked: 37
    Re: GET the values from ini file
    « Reply #1 on: August 04, 2008, 02:30:09 AM »
    Code: [Select]
    @echo off
    for /F "tokens=1-2 delims==" %%A in (file.ini) do (
    echo %%B
    )
    pause >nul
    Download: Choice.exe