Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows batch read value from ini file

07 Jul 2017   #1
Hynt

Windows 7 ultimate 32bit
 
 
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 System SpecsSystem Spec
.
07 Jul 2017   #2
Megahertz07

Windows 7 HP 64
 
 

Can you explain what you want.
My System SpecsSystem Spec
07 Jul 2017   #3
Hynt

Windows 7 ultimate 32bit
 
 

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 System SpecsSystem Spec
.

07 Jul 2017   #4
Megahertz07

Windows 7 HP 64
 
 

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 System SpecsSystem Spec
07 Jul 2017   #5
johnhoh

Win7 pro x64
 
 

Hynt - Please use complete sentences. I've read through your posts several times but cannot understand what you want.
My System SpecsSystem Spec
07 Jul 2017   #6
Hynt

Windows 7 ultimate 32bit
 
 

Sorry my English is not så good using Google translate. I want to read value from a text file in batch
My System SpecsSystem Spec
07 Jul 2017   #7
Megahertz07

Windows 7 HP 64
 
 

You can use type c:\.... to read a txt file (ini files are normally txt)
My System SpecsSystem Spec
07 Jul 2017   #8
samuria

win 8 32 bit
 
 

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 System SpecsSystem Spec
Reply

 Windows batch read value from ini file




Thread Tools




Similar help and support threads
Thread Forum
Windows 7 batch file help
I use a program from the command line with two inputs: prog file1.exA file2.exB Where .exA is an input file for prog and .exB is the second file required for the file. I would like a to create a batch file to call the program that loops through all the *.exA files using all the .exB files....
General Discussion
Batch File: works under cmd-Windows , NOT under MS-DOS
I made these codes to backup files : set p=C:\Users\ for /f %%a in ('dir C:\Users\ /b') do ( if not "%%a"=="Public", ( set fileDest=C:\Backup-%%a_%date:~7,2%.%date:~4,2%.%date:~10,4%
Virtualization
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
Serial read/write in batch file?
Hello all. I'm trying to write a request to COM2 and capture the answer. My device is 19200 baud 8/1 non parity. Using a freeware terminal called termite I can send the hex instruction and receive the answer, as verified in HHD serial monitor. My batch file looks like this: MODE COM2:...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion


Our Sites

Site Links

About Us

Find 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 22:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App