Jump to content

mila

Members
  • Posts

    19
  • Joined

  • Last visited

mila's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I understand what u mean. But i already have .ini file encrypted, it contain hundred data. my .ini format : [1] NAME = A DIV = CH EMAIL = a@ccc.com TELEPON = n/a [2] NAME = B DIV = CH EMAIL = b@ccc.com TELEPON = n/a ' ' ' [100] if i using _Crypt_EncryptData, _Crypt_DecryptData i have to change my format file. How to Encrypt .ini file using _Crypt_EncryptData then decrypt it again?
  2. Hi Omikron48, Can u give me example to read and decrypt from memory? Thanks.
  3. Hi All, I want ask some question about decrypt File. I have Encrypt File (.ini) and put in -> @ScriptDir & "\MasterListEnc.ini" When i want to use that file, i have to decrypt file like this : _Crypt_DecryptFile(@ScriptDir & "\MasterListEnc.ini", @ScriptDir & "\MasterList.ini", pass, $CALG_DES) It work to decrypt & read the data. But the problem is when i run my program, decrypt file will show. My question is how to hide decrypt file when i run my application? I need help. Thank U.
  4. Hi Tvern, Ya, that i'm looking for. So, i forgot to put $final1 = "" Thanks Tvern
  5. I had looked in forum a simple program Format Number to add coma : www.autoitscript.com/forum/index.php?showtopic=16376 Global $t, $t1, $final1, $result, $var[2], $final2 ;$Var = 45678913231 $var[0] = 123456 $var[1] = 789012 for $i = 0 to 1 $result = StringSplit($var[$i], "") For $x = $result[0] to 1 Step -1 $t = $t +1 MsgBox(0, "", $t) If $t = 4 Then $final1 = "," & $final1 $t = 1 EndIf $final1 = $result[$x] & $final1 Next MsgBox(0, "Results", $final1) Next I using that code to format number more than 1 variable. When read variabel 1 the result is true but the problem is when read next variabel the result is union from current variabel and first variabel. How to format number each of variabel? Thank You.
  6. Hello, I want to ask how to count character in text file. I have text file like this : A;B;C;D; E;F;G;H;I; How to count ';' per line? Thanks.
  7. Stefan, Thank U
  8. Hi Stefan, I have question : If i run the script in 1 time, it will produce trno: 001, 002, 003. And when i close program then run script again to append text in same txt file, trno will produce 001, 002, 003 same like before. How to make trno continue (004, 005, ....)? Thanks.
  9. Great. It's Worked. Thanks Stefan
  10. Hi Stefan, It's my code : #Include <File.au3> dim $var1a, $var1b, $var2a, $var2b, $var3a, $var3b dim $trno, $split, $split1, $message $dir = FileOpenDialog($message, @ScriptDir & "\","File (*.ini)", 1 + 4) $message = "Hold down Ctrl or Shift to choose multiple files." If @error Then MsgBox(4096,"","No File(s) chosen") Else $dir = StringReplace($dir, "|", @CRLF) MsgBox(4096,"Confirm","You choose " & $dir) EndIf ;$dir = @ScriptDir & $open $split = StringRight($dir, 5) $split1 = StringLeft($split, 1) $dir2 = @ScriptDir & "\" & $split1 & ".txt" $var1a = IniRead($dir, "Test", "Date", "") $var1b = IniRead($dir, "Test", "Name", "") $var2a = IniRead($dir, "Test", "Acc1", "") $var2b = IniRead($dir, "Test", "Acc2", "") $var3a = IniRead($dir, "Test", "Tot1", "") $var3b = IniRead($dir, "Test", "Tot2", "") $trno = "00001" FileWriteLine($dir2, $trno &";"& $var1a &";"& $var1b & ";" & $var2a &";"& $var3a) FileWriteLine($dir2, $trno &";"& $var1a &";"& $var1b & ";" & $var2b &";"& $var3b) A.ini ================ [Test] Date=15052010 Name=A Acc1=580 Acc2=581 Tot1=1000 Tot2=2000 My code just convert 1 ini file & trno i put manual. How to put 2 .ini into 1 .txt & trno generate automatically?
  11. I know the way to read .ini and write them to .txt. I just confuse how to make 2 .ini file to be 1 .txt file and give number (eg. 001, 002) based on each file.
  12. Dear All, I need help to convert .ini to .txt formatted. I have 2 .ini files in my directory (A.ini & B.ini). Here is .ini format: (File A.ini) [Test] Date = 15052010 Name = A Acc1 = 580 Acc2 = 581 Tot1 = 1000 Tot2 = 5000 (File B.ini) [Test] Date = 15052010 Name = B Acc1 = 580 Acc2 = 581 Tot1 = 2000 Tot2 = 8000 I want to put them on 1 .txt file with this format : 001;15052010;A;580;1000 001;15052010;A;581;5000 002;15052010;B;580;2000 002;15052010;B;581;8000 can we do that? Please help and Thanks.
  13. I already solved my problem. Thanks
×
×
  • Create New...