{"id":5328,"date":"2024-11-27T11:08:13","date_gmt":"2024-11-27T04:08:13","guid":{"rendered":"https:\/\/dev.artru.net\/?p=5328"},"modified":"2024-11-27T12:26:46","modified_gmt":"2024-11-27T05:26:46","slug":"huong-dan-cau-hinh-hang-loat-thuoc-tinh-cho-ldplayer-bang-file-bat","status":"publish","type":"post","link":"https:\/\/artru.net\/en\/huong-dan-cau-hinh-hang-loat-thuoc-tinh-cho-ldplayer-bang-file-bat\/","title":{"rendered":"Instructions for batch configuring properties for LDPlayer using .bat file"},"content":{"rendered":"<p>Those who have used MEMUPlayer have seen its convenience, right? From window arrangement to batch configuration, everything is available in its settings.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"692\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/11\/Optimization-MEMUPlayer.png\" alt=\"Optimization MEMUPlayer\" class=\"wp-image-5347\"\/><figcaption class=\"wp-element-caption\">Optimization MEMUPlayer<\/figcaption><\/figure>\n<\/div>\n\n\n<p>LDPlayer is not as versatile as MEMUPlayer. Especially in old versions LD3, LD4.<\/p>\n\n\n\n<p>In this article, I will guide you to configure a series of properties for LDPlayer using a .bat file. <code data-no-translation=\"\" data-no-auto-translation=\"\">.bat<\/code><\/p>\n\n\n\n<p>You may also know <a href=\"https:\/\/www.ldplayer.net\/blog\/introduction-to-ldplayer-command-line-interface.html\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">LDPlayer supports CMD commands to customize many things<\/a>. Including the item <code data-no-translation=\"\" data-no-auto-translation=\"\">property setting<\/code> Used to customize virtual machine configuration such as resolution, cpu, ram,...<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code data-no-translation=\"\" data-no-auto-translation=\"\">modify &lt;--name mnq_name | --index mnq_idx&gt;\n    &#91;--resolution ]\n    &#91;--cpu &lt;1 | 2 | 3 | 4&gt;]\n    &#91;--memory &lt;512 | 1024 | 2048 | 4096 | 8192&gt;]\n    &#91;--manufacturer asus]\n    &#91;--model ASUS_Z00DUO]\n    &#91;--pnumber 13812345678]\n    &#91;--imei ]\n    &#91;--imsi ]    \n    &#91;--simserial ]\n    &#91;--androidid ]\n    &#91;--mac ]\n    &#91;--autorotate &lt;1 | 0&gt;]\n    &#91;--lockwindow &lt;1 | 0&gt;]\n\nFor example\uff1a\ndnconsole.exe modify --index 0 --resolution 600,360,160 --cpu 1 --memory 1024 --imei auto<\/code><\/pre>\n\n\n\n<p>However, the above code only applies to 1 virtual machine. If you have many virtual machines, you have to enter each line one by one and it is quite time-consuming.<\/p>\n\n\n\n<p><code data-no-translation=\"\" data-no-auto-translation=\"\">--index 0<\/code> is the virtual machine ID number. It usually starts from 0 for the first virtual machine. Open LDMultiPlayer and you will see this ID list. <\/p>\n\n\n\n<p>If anything is too difficult, chatGPT will take care of it \ud83d\ude00 . I have used chatGPT to come up with a solution for this mass configuration.<\/p>\n\n\n\n<p>We will use the file <code data-no-translation=\"\" data-no-auto-translation=\"\">.bat<\/code> and put this file right into the installation folder of the LDPlayer you are using. Usually, you only need to change the resolution, core, ram, and device model. If you don&#039;t use it, you don&#039;t need to fill it in.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"562\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/11\/Tep-1-bat-trong-LDPlayer.png\" alt=\"1.bat file in LDPlayer\" class=\"wp-image-5348\"\/><figcaption class=\"wp-element-caption\">1.bat file in LDPlayer<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Right click on the file <code data-no-translation=\"\" data-no-auto-translation=\"\">.bat<\/code> select <code data-no-translation=\"\" data-no-auto-translation=\"\">edit<\/code> and enter the code below:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code data-no-translation=\"\" data-no-auto-translation=\"\">setlocal enabledelayedexpansion\nfor \/l %%i in (0,1,10) do (\n    dnconsole.exe modify --index %%i --resolution 200,150,60 --cpu 1 --ram 1536 --manufacturer asus --model ASUS_Z00DUO\n)<\/code><\/pre>\n\n\n\n<p>Explanation for the above code:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">setlocal enabledelayedexpansion<\/code>: Enables delay variable expansion mode, allowing the use of <code data-no-translation=\"\" data-no-auto-translation=\"\">!variable!<\/code> to expand variables in loop <code data-no-translation=\"\" data-no-auto-translation=\"\">for<\/code><\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">for \/l %%i in (0,1,10) do (<\/code>: Loop <code data-no-translation=\"\" data-no-auto-translation=\"\">for<\/code> runs from 0 to 10 (including 10), with an increment of 1. The counter variable is <code data-no-translation=\"\" data-no-auto-translation=\"\">%%i<\/code><\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">dnconsole.exe modify --index %%i --resolution 200,150,60 --cpu 1 --ram 1536 --manufacturer asus --model ASUS_Z00DUO<\/code>: Run command <code data-no-translation=\"\" data-no-auto-translation=\"\">dnconsole.exe<\/code> to change LDPlayer parameters. The parameters include:\n<ul class=\"wp-block-list\">\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--index %%i<\/code>: The ID index of the LDPlayer virtual machine. It is the variable <code data-no-translation=\"\" data-no-auto-translation=\"\">%%i<\/code> which you declared earlier.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--resolution 200,150,60<\/code>: screen resolution with <code data-no-translation=\"\" data-no-auto-translation=\"\">width: 200<\/code>, <code data-no-translation=\"\" data-no-auto-translation=\"\">height: 150<\/code>, <code data-no-translation=\"\" data-no-auto-translation=\"\">DPI: 60<\/code><\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--cpu 1<\/code>: number of CPU cores is 1.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--ram 1536<\/code>: RAM capacity is 1536 MB.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--manufacturer asus<\/code>: Manufacturer is ASUS.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">--model ASUS_Z00DUO<\/code>: Device model is ASUS_Z00DUO.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>To run in batch, just run the file <code data-no-translation=\"\" data-no-auto-translation=\"\">.bat<\/code> that&#039;s ok<\/p>","protected":false},"excerpt":{"rendered":"<p>Anh em n\u00e0o \u0111\u00e3 t\u1eebng d\u00f9ng MEMUPlayer th\u00ec th\u1ea5y s\u1ef1 ti\u1ec7n d\u1ee5ng c\u1ee7a n\u00f3 r\u1ed3i \u0111\u00fang kh\u00f4ng. T\u1eeb s\u1eafp x\u1ebfp c\u1eeda s\u1ed5, \u0111\u1ebfn c\u1ea5u h\u00ecnh h\u00e0ng lo\u1ea1t \u0111\u1ec1u c\u00f3 s\u1eb5n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-5328","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/5328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/comments?post=5328"}],"version-history":[{"count":0,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/5328\/revisions"}],"wp:attachment":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/media?parent=5328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/categories?post=5328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/tags?post=5328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}