Jump to content

How can i "silently" add text in an .ini file


coucou

Recommended Posts


TNX Arie for yr reply.

During the appz installation, a setting.ini file is created with a special entries see here bellow

[Other]
OpenFileDlg=D:\Private\Misc\
[General]
SaveMode=0
SavePath=C:\
O_passWord=
Record_Log=0
LogPath=C:\Program Files\Ap PDF to IMAGE\
[Page]
PageRange=0
C_Pages=
PageZoom=100
C_ImgSize=0
C_ImgSizeW=594
C_ImgSizeH=792
C_ImgSize_Sel=4
C_ImgRotate=0
C_ImgAngle=90
[FilenName]
UseTemplate=1
ReplaceMode=0
StartAt=0
Template=<File_Name>####
[Image]
Img_Type=3
Dpi_X=100
Dpi_Y=100
Jpg_Quality=75
BitCount=0
Grayscale=0
Tiff_Compress=1
Tiff_Jpg_Quality=75
Tiff_IsAppend=1
[InterFace]
ListToolbar=1
MainToolbar=1
Statusbar=1

Then i'm looking to add these 2 lines (entries) in that existing setting.ini file

[Serial]
Serial=XXXXXXXXXXXXXXXXXXXXXXX

Regards

coucou

Link to comment
Share on other sites

Simply use hidden DOS commands with cWnd/cmdow or AutoIt... :rolleyes:

echo [Serial]>>setting.ini
echo Serial=XXXXXXXXXXXXXXXXXXXXXXX>>setting.ini

AutoIt3.exe /AutoIt3ExecuteLine "IniWrite ( 'C:\setting.ini', 'Serial', 'Serial', 'XXXXXXXXXXXXXXXXXXXXXXX' )"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...