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

Author Topic: How to read the properties in a dos file  (Read 2236 times)

0 Members and 1 Guest are viewing this topic.

dossing

    Topic Starter


    Greenhorn

    How to read the properties in a dos file
    « on: June 05, 2008, 03:12:09 AM »
    I do have a set of properties in the file, which needs to be made used in my .bat file.

    Say my data.properties file contains

    key1=value1
    key2=value2

    How can I access these values in my .bat file.

    Advance thanks for the help.


    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: How to read the properties in a dos file
    « Reply #1 on: June 05, 2008, 03:16:50 AM »
    I'm guessing the commands are:
    set key1=value1
    set key2=value2

    If so, you can use them with the call command.

    Code: [Select]
    call C:\documents and settings\%username%\Desktop\keys.bat
    Try that and see if it works or not.  ;)

    dossing

      Topic Starter


      Greenhorn

      Re: How to read the properties in a dos file
      « Reply #2 on: June 05, 2008, 03:22:26 AM »
      Yep it works. The reply was really fast  :).  Thanks a lot.

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      Re: How to read the properties in a dos file
      « Reply #3 on: June 05, 2008, 03:44:52 AM »
      No problem.

      Any other questions, you know where to find us.  ;)