coucou Posted October 18, 2007 Share Posted October 18, 2007 Hi,How can i "silently" add the 2 lines text bellow in an .ini file [Serial]Serial=XXXXXXXXXXXXXXXXXXXXXXXRegardscoucou Link to comment Share on other sites More sharing options...
Arie Posted October 18, 2007 Share Posted October 18, 2007 I don't quite understand your problem or why you would want to do this. Couldn't you simply just replace the INI-file completely? Link to comment Share on other sites More sharing options...
coucou Posted October 18, 2007 Author Share Posted October 18, 2007 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=0SavePath=C:\O_passWord=Record_Log=0LogPath=C:\Program Files\Ap PDF to IMAGE\[Page]PageRange=0C_Pages=PageZoom=100C_ImgSize=0C_ImgSizeW=594C_ImgSizeH=792C_ImgSize_Sel=4C_ImgRotate=0C_ImgAngle=90[FilenName]UseTemplate=1ReplaceMode=0StartAt=0Template=<File_Name>####[Image]Img_Type=3Dpi_X=100Dpi_Y=100Jpg_Quality=75BitCount=0Grayscale=0Tiff_Compress=1Tiff_Jpg_Quality=75Tiff_IsAppend=1[InterFace]ListToolbar=1MainToolbar=1Statusbar=1Then i'm looking to add these 2 lines (entries) in that existing setting.ini file[Serial]Serial=XXXXXXXXXXXXXXXXXXXXXXXRegardscoucou Link to comment Share on other sites More sharing options...
CEoCEo Posted October 18, 2007 Share Posted October 18, 2007 Simply use hidden DOS commands with cWnd/cmdow or AutoIt... echo [Serial]>>setting.iniecho Serial=XXXXXXXXXXXXXXXXXXXXXXX>>setting.iniAutoIt3.exe /AutoIt3ExecuteLine "IniWrite ( 'C:\setting.ini', 'Serial', 'Serial', 'XXXXXXXXXXXXXXXXXXXXXXX' )" Link to comment Share on other sites More sharing options...
coucou Posted October 18, 2007 Author Share Posted October 18, 2007 BRAVO CEoCEo Tested both cWnd/cmdow and AutoIt works Thank youcoucou Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now