function uploadUnclaimedAsset() { var issuerCode = Project.Variables.code.Value("issuerCode"); var registrarCode = Project.Variables.code.Value("codeRegister"); var clientCode1 = Project.Variables.code.Value("accountClientCode1"); var clientCOde2 = Project.Variables.code.Value("accountClientCode2"); var clientCode3 = Project.Variables.code.Value("accountClientCode3"); var clientCode4 = Project.Variables.code.Value("accountClientCode4"); var instituionalCode = Project.Variables.code.Value("instituionalCode"); var url = "C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Unclaimed Asset Investor\\account_sdiuc.sdiuc"; var zip = "C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Unclaimed Asset Investor\\account_sdiuc.zip"; var template = '\n'+ '\n'+ 'REF01\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCode1+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 01\n'+ 'CREATE\n'+ 'I\n'+ '\n'+ '\n'+ 'REF02\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCOde2+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 02\n'+ 'CREATE\n'+ 'I\n'+ '\n'+ '\n'+ 'REF03\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCode3+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 03\n'+ 'CREATE\n'+ 'I\n'+ '\n'+ '\n'+ 'REF04\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCode4+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 04\n'+ 'CREATE\n'+ 'I\n'+ '\n'+ '' if (aqFile.Create(url) == 0) { aqFile.WriteToTextFile(url, template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } else { aqFile.Delete(url); aqFile.Delete(zip); if (aqFile.Create(url) == 0) { aqFile.WriteToTextFile(url, template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } } }