Advertisement
Guest User

CLIENT SETUP

a guest
Jan 15th, 2015
607
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2.  
  3. ECHO --------------------------------------------------
  4. ECHO --------------------------------------------------
  5. ECHO --------------- 5 USER KODI SCRIPT ---------------
  6. ECHO --------------------------------------------------
  7. ECHO --------------------------------------------------
  8. ECHO ---------------- CLIENT SETUP 1.3 ----------------
  9. ECHO --------------------------------------------------
  10. ECHO --------------------------------------------------
  11. ECHO ----------------- BY N. KINGSTON -----------------
  12. ECHO --------------------------------------------------
  13. ECHO --------------------------------------------------
  14. ECHO ----------------EDITED BY Martin K.---------------
  15. ECHO --------------------------------------------------
  16. ECHO --------------------------------------------------
  17. ECHO.
  18. ECHO.
  19. ECHO.
  20. ECHO.
  21. ECHO.
  22.  
  23.  
  24.  
  25.  
  26.  
  27. IF EXIST "%appdata%\KODI_Backup" (
  28.  
  29. ECHO MOVE OR DELETE: "%appdata%\KODI_Backup"
  30. ECHO.
  31. ECHO SCRIPT WILL NOW EXIT
  32. ECHO.
  33. PAUSE
  34. EXIT
  35.  
  36. )
  37.  
  38.  
  39.  
  40.  
  41.  
  42. SET /P ipaddress=ENTER YOUR MYSQL SERVERS IP ADDRESS: %=%
  43.  
  44. ECHO.
  45.  
  46. SET /P username=ENTER YOUR MYSQL SERVERS USERNAME: %=%
  47.  
  48. ECHO.
  49.  
  50. SET /P password=ENTER YOUR MYSQL SERVERS PASSWORD: %=%
  51.  
  52. ECHO.
  53. ECHO.
  54. ECHO.
  55. ECHO.
  56. ECHO.
  57.  
  58. SET /P buffer=BUFFER FILES TO HARD DRIVE [blank = no / 1 = yes]: %=%
  59.  
  60. ECHO.
  61. ECHO.
  62. ECHO.
  63. ECHO.
  64. ECHO.
  65.  
  66. SET /P name1=USER 1 NAME: %=%
  67.  
  68. ECHO.
  69.  
  70. SET /P database1=USER 1 DATABASE: %=%
  71.  
  72. ECHO.
  73. ECHO.
  74. ECHO.
  75. ECHO.
  76. ECHO.
  77.  
  78. SET /P name2=USER 2 NAME: %=%
  79.  
  80. ECHO.
  81.  
  82. SET /P database2=USER 2 DATABASE: %=%
  83.  
  84. ECHO.
  85. ECHO.
  86. ECHO.
  87. ECHO.
  88. ECHO.
  89.  
  90. SET /P name3=USER 3 NAME: %=%
  91.  
  92. ECHO.
  93.  
  94. SET /P database3=USER 3 DATABASE: %=%
  95.  
  96. ECHO.
  97. ECHO.
  98. ECHO.
  99. ECHO.
  100. ECHO.
  101.  
  102. SET /P name4=USER 4 NAME: %=%
  103.  
  104. ECHO.
  105.  
  106. SET /P database4=USER 4 DATABASE: %=%
  107.  
  108. ECHO.
  109. ECHO.
  110. ECHO.
  111. ECHO.
  112. ECHO.
  113.  
  114. SET /P name5=USER 5 NAME: %=%
  115.  
  116. ECHO.
  117.  
  118. SET /P database5=USER 5 DATABASE: %=%
  119.  
  120. ECHO.
  121. ECHO.
  122.  
  123.  
  124.  
  125.  
  126.  
  127. SET folder1=%appdata%\KODI\userdata
  128. SET folder2=%appdata%\KODI\userdata\profiles\b
  129. SET folder3=%appdata%\KODI\userdata\profiles\c
  130. SET folder4=%appdata%\KODI\userdata\profiles\d
  131. SET folder5=%appdata%\KODI\userdata\profiles\e
  132.  
  133.  
  134.  
  135.  
  136.  
  137. IF EXIST "%appdata%\KODI" (
  138.  
  139. MOVE "%appdata%\KODI" "%appdata%\XBMC_Backup"
  140.  
  141. )
  142.  
  143.  
  144.  
  145.  
  146. ECHO.
  147. ECHO.
  148. ECHO --------------------------------------------------
  149. ECHO --------------------------------------------------
  150. ECHO --------------- CONFIGURING USER 1 ---------------
  151. ECHO --------------------------------------------------
  152. ECHO --------------------------------------------------
  153. ECHO.
  154. ECHO.
  155.  
  156. MKDIR "%appdata%\KODI"
  157. MKDIR "%folder1%"
  158. MKDIR "%folder1%\addon_data"
  159. MKDIR "%folder1%\Database"
  160. MKDIR "%folder1%\profiles"
  161. MKDIR "%folder1%\Thumbnails"
  162.  
  163. ECHO. > "%folder1%\guisettings.xml"
  164. ECHO. > "%folder1%\mediasources.xml"
  165. ECHO. > "%folder1%\sources.xml"
  166.  
  167. ECHO ^<advancedsettings^> > "%folder1%\advancedsettings.xml"
  168.  
  169. ECHO ^<videodatabase^> >> "%folder1%\advancedsettings.xml"
  170. ECHO ^<type^>mysql^</type^> >> "%folder1%\advancedsettings.xml"
  171. ECHO ^<host^>%ipaddress%^</host^> >> "%folder1%\advancedsettings.xml"
  172. ECHO ^<port^>3306^</port^> >> "%folder1%\advancedsettings.xml"
  173. ECHO ^<user^>%username%^</user^> >> "%folder1%\advancedsettings.xml"
  174. ECHO ^<pass^>%password%^</pass^> >> "%folder1%\advancedsettings.xml"
  175. ECHO ^<name^>%database1%^</name^> >> "%folder1%\advancedsettings.xml"
  176. ECHO ^</videodatabase^> >> "%folder1%\advancedsettings.xml"
  177.  
  178. ECHO ^<musicdatabase^> >> "%folder1%\advancedsettings.xml"
  179. ECHO ^<type^>mysql^</type^> >> "%folder1%\advancedsettings.xml"
  180. ECHO ^<host^>%ipaddress%^</host^> >> "%folder1%\advancedsettings.xml"
  181. ECHO ^<port^>3306^</port^> >> "%folder1%\advancedsettings.xml"
  182. ECHO ^<user^>%username%^</user^> >> "%folder1%\advancedsettings.xml"
  183. ECHO ^<pass^>%password%^</pass^> >> "%folder1%\advancedsettings.xml"
  184. ECHO ^<name^>%database1%^</name^> >> "%folder1%\advancedsettings.xml"
  185. ECHO ^</musicdatabase^> >> "%folder1%\advancedsettings.xml"
  186.  
  187. IF [%buffer%] == [1] (
  188.  
  189. ECHO ^<network^> >> "%folder1%\advancedsettings.xml"
  190. ECHO ^<buffermode^>1^</buffermode^> >> "%folder1%\advancedsettings.xml"
  191. ECHO ^<cachemembuffersize^>0^</cachemembuffersize^> >> "%folder1%\advancedsettings.xml"
  192. ECHO ^<readbufferfactor^>9999^</readbufferfactor^> >> "%folder1%\advancedsettings.xml"
  193. ECHO ^</network^> >> "%folder1%\advancedsettings.xml"
  194.  
  195. )
  196.  
  197. ECHO ^</advancedsettings^> >> "%folder1%\advancedsettings.xml"
  198.  
  199.  
  200.  
  201.  
  202.  
  203. IF NOT [%name2%] == [] (
  204.  
  205. ECHO.
  206. ECHO.
  207. ECHO --------------------------------------------------
  208. ECHO --------------------------------------------------
  209. ECHO --------------- CONFIGURING USER 2 ---------------
  210. ECHO --------------------------------------------------
  211. ECHO --------------------------------------------------
  212. ECHO.
  213. ECHO.
  214.  
  215. MKDIR "%folder2%"
  216.  
  217. MKLINK /D "%folder2%\addon_data" "%folder1%\addon_data"
  218. MKLINK /D "%folder2%\Database" "%folder1%\Database"
  219. MKLINK /D "%folder2%\Thumbnails" "%folder1%\Thumbnails"
  220.  
  221. MKLINK "%folder2%\guisettings.xml" "%folder1%\guisettings.xml"
  222. MKLINK "%folder2%\mediasources.xml" "%folder1%\mediasources.xml"
  223. MKLINK "%folder2%\sources.xml" "%folder1%\sources.xml"
  224.  
  225. ECHO ^<advancedsettings^> > "%folder2%\advancedsettings.xml"
  226.  
  227. ECHO ^<videodatabase^> >> "%folder2%\advancedsettings.xml"
  228. ECHO ^<type^>mysql^</type^> >> "%folder2%\advancedsettings.xml"
  229. ECHO ^<host^>%ipaddress%^</host^> >> "%folder2%\advancedsettings.xml"
  230. ECHO ^<port^>3306^</port^> >> "%folder2%\advancedsettings.xml"
  231. ECHO ^<user^>%username%^</user^> >> "%folder2%\advancedsettings.xml"
  232. ECHO ^<pass^>%password%^</pass^> >> "%folder2%\advancedsettings.xml"
  233. ECHO ^<name^>%database2%^</name^> >> "%folder2%\advancedsettings.xml"
  234. ECHO ^</videodatabase^> >> "%folder2%\advancedsettings.xml"
  235.  
  236. ECHO ^<musicdatabase^> >> "%folder2%\advancedsettings.xml"
  237. ECHO ^<type^>mysql^</type^> >> "%folder2%\advancedsettings.xml"
  238. ECHO ^<host^>%ipaddress%^</host^> >> "%folder2%\advancedsettings.xml"
  239. ECHO ^<port^>3306^</port^> >> "%folder2%\advancedsettings.xml"
  240. ECHO ^<user^>%username%^</user^> >> "%folder2%\advancedsettings.xml"
  241. ECHO ^<pass^>%password%^</pass^> >> "%folder2%\advancedsettings.xml"
  242. ECHO ^<name^>%database2%^</name^> >> "%folder2%\advancedsettings.xml"
  243. ECHO ^</musicdatabase^> >> "%folder2%\advancedsettings.xml"
  244.  
  245. IF [%buffer%] == [1] (
  246.  
  247. ECHO ^<network^> >> "%folder2%\advancedsettings.xml"
  248. ECHO ^<buffermode^>1^</buffermode^> >> "%folder2%\advancedsettings.xml"
  249. ECHO ^<cachemembuffersize^>0^</cachemembuffersize^> >> "%folder2%\advancedsettings.xml"
  250. ECHO ^<readbufferfactor^>9999^</readbufferfactor^> >> "%folder2%\advancedsettings.xml"
  251. ECHO ^</network^> >> "%folder2%\advancedsettings.xml"
  252.  
  253. )
  254.  
  255. ECHO ^</advancedsettings^> >> "%folder2%\advancedsettings.xml"
  256.  
  257. )
  258.  
  259.  
  260.  
  261.  
  262.  
  263. IF NOT [%name3%] == [] (
  264.  
  265. ECHO.
  266. ECHO.
  267. ECHO --------------------------------------------------
  268. ECHO --------------------------------------------------
  269. ECHO --------------- CONFIGURING USER 3 ---------------
  270. ECHO --------------------------------------------------
  271. ECHO --------------------------------------------------
  272. ECHO.
  273. ECHO.
  274.  
  275. MKDIR "%folder3%"
  276.  
  277. MKLINK /D "%folder3%\addon_data" "%folder1%\addon_data"
  278. MKLINK /D "%folder3%\Database" "%folder1%\Database"
  279. MKLINK /D "%folder3%\Thumbnails" "%folder1%\Thumbnails"
  280.  
  281. MKLINK "%folder3%\guisettings.xml" "%folder1%\guisettings.xml"
  282. MKLINK "%folder3%\mediasources.xml" "%folder1%\mediasources.xml"
  283. MKLINK "%folder3%\sources.xml" "%folder1%\sources.xml"
  284.  
  285. ECHO ^<advancedsettings^> > "%folder3%\advancedsettings.xml"
  286.  
  287. ECHO ^<videodatabase^> >> "%folder3%\advancedsettings.xml"
  288. ECHO ^<type^>mysql^</type^> >> "%folder3%\advancedsettings.xml"
  289. ECHO ^<host^>%ipaddress%^</host^> >> "%folder3%\advancedsettings.xml"
  290. ECHO ^<port^>3306^</port^> >> "%folder3%\advancedsettings.xml"
  291. ECHO ^<user^>%username%^</user^> >> "%folder3%\advancedsettings.xml"
  292. ECHO ^<pass^>%password%^</pass^> >> "%folder3%\advancedsettings.xml"
  293. ECHO ^<name^>%database3%^</name^> >> "%folder3%\advancedsettings.xml"
  294. ECHO ^</videodatabase^> >> "%folder3%\advancedsettings.xml"
  295.  
  296. ECHO ^<musicdatabase^> >> "%folder3%\advancedsettings.xml"
  297. ECHO ^<type^>mysql^</type^> >> "%folder3%\advancedsettings.xml"
  298. ECHO ^<host^>%ipaddress%^</host^> >> "%folder3%\advancedsettings.xml"
  299. ECHO ^<port^>3306^</port^> >> "%folder3%\advancedsettings.xml"
  300. ECHO ^<user^>%username%^</user^> >> "%folder3%\advancedsettings.xml"
  301. ECHO ^<pass^>%password%^</pass^> >> "%folder3%\advancedsettings.xml"
  302. ECHO ^<name^>%database3%^</name^> >> "%folder3%\advancedsettings.xml"
  303. ECHO ^</musicdatabase^> >> "%folder3%\advancedsettings.xml"
  304.  
  305. IF [%buffer%] == [1] (
  306.  
  307. ECHO ^<network^> >> "%folder3%\advancedsettings.xml"
  308. ECHO ^<buffermode^>1^</buffermode^> >> "%folder3%\advancedsettings.xml"
  309. ECHO ^<cachemembuffersize^>0^</cachemembuffersize^> >> "%folder3%\advancedsettings.xml"
  310. ECHO ^<readbufferfactor^>9999^</readbufferfactor^> >> "%folder3%\advancedsettings.xml"
  311. ECHO ^</network^> >> "%folder3%\advancedsettings.xml"
  312.  
  313. )
  314.  
  315. ECHO ^</advancedsettings^> >> "%folder3%\advancedsettings.xml"
  316.  
  317. )
  318.  
  319.  
  320.  
  321.  
  322.  
  323. IF NOT [%name4%] == [] (
  324.  
  325. ECHO.
  326. ECHO.
  327. ECHO --------------------------------------------------
  328. ECHO --------------------------------------------------
  329. ECHO --------------- CONFIGURING USER 4 ---------------
  330. ECHO --------------------------------------------------
  331. ECHO --------------------------------------------------
  332. ECHO.
  333. ECHO.
  334.  
  335. MKDIR "%folder4%"
  336.  
  337. MKLINK /D "%folder4%\addon_data" "%folder1%\addon_data"
  338. MKLINK /D "%folder4%\Database" "%folder1%\Database"
  339. MKLINK /D "%folder4%\Thumbnails" "%folder1%\Thumbnails"
  340.  
  341. MKLINK "%folder4%\guisettings.xml" "%folder1%\guisettings.xml"
  342. MKLINK "%folder4%\mediasources.xml" "%folder1%\mediasources.xml"
  343. MKLINK "%folder4%\sources.xml" "%folder1%\sources.xml"
  344.  
  345. ECHO ^<advancedsettings^> > "%folder4%\advancedsettings.xml"
  346.  
  347. ECHO ^<videodatabase^> >> "%folder4%\advancedsettings.xml"
  348. ECHO ^<type^>mysql^</type^> >> "%folder4%\advancedsettings.xml"
  349. ECHO ^<host^>%ipaddress%^</host^> >> "%folder4%\advancedsettings.xml"
  350. ECHO ^<port^>3306^</port^> >> "%folder4%\advancedsettings.xml"
  351. ECHO ^<user^>%username%^</user^> >> "%folder4%\advancedsettings.xml"
  352. ECHO ^<pass^>%password%^</pass^> >> "%folder4%\advancedsettings.xml"
  353. ECHO ^<name^>%database4%^</name^> >> "%folder4%\advancedsettings.xml"
  354. ECHO ^</videodatabase^> >> "%folder4%\advancedsettings.xml"
  355.  
  356. ECHO ^<musicdatabase^> >> "%folder4%\advancedsettings.xml"
  357. ECHO ^<type^>mysql^</type^> >> "%folder4%\advancedsettings.xml"
  358. ECHO ^<host^>%ipaddress%^</host^> >> "%folder4%\advancedsettings.xml"
  359. ECHO ^<port^>3306^</port^> >> "%folder4%\advancedsettings.xml"
  360. ECHO ^<user^>%username%^</user^> >> "%folder4%\advancedsettings.xml"
  361. ECHO ^<pass^>%password%^</pass^> >> "%folder4%\advancedsettings.xml"
  362. ECHO ^<name^>%database4%^</name^> >> "%folder4%\advancedsettings.xml"
  363. ECHO ^</musicdatabase^> >> "%folder4%\advancedsettings.xml"
  364.  
  365. IF [%buffer%] == [1] (
  366.  
  367. ECHO ^<network^> >> "%folder4%\advancedsettings.xml"
  368. ECHO ^<buffermode^>1^</buffermode^> >> "%folder4%\advancedsettings.xml"
  369. ECHO ^<cachemembuffersize^>0^</cachemembuffersize^> >> "%folder4%\advancedsettings.xml"
  370. ECHO ^<readbufferfactor^>9999^</readbufferfactor^> >> "%folder4%\advancedsettings.xml"
  371. ECHO ^</network^> >> "%folder4%\advancedsettings.xml"
  372.  
  373. )
  374.  
  375. ECHO ^</advancedsettings^> >> "%folder4%\advancedsettings.xml"
  376.  
  377. )
  378.  
  379.  
  380.  
  381.  
  382.  
  383. IF NOT [%name5%] == [] (
  384.  
  385. ECHO.
  386. ECHO.
  387. ECHO --------------------------------------------------
  388. ECHO --------------------------------------------------
  389. ECHO --------------- CONFIGURING USER 5 ---------------
  390. ECHO --------------------------------------------------
  391. ECHO --------------------------------------------------
  392. ECHO.
  393. ECHO.
  394.  
  395. MKDIR "%folder5%"
  396.  
  397. MKLINK /D "%folder5%\addon_data" "%folder1%\addon_data"
  398. MKLINK /D "%folder5%\Database" "%folder1%\Database"
  399. MKLINK /D "%folder5%\Thumbnails" "%folder1%\Thumbnails"
  400.  
  401. MKLINK "%folder5%\guisettings.xml" "%folder1%\guisettings.xml"
  402. MKLINK "%folder5%\mediasources.xml" "%folder1%\mediasources.xml"
  403. MKLINK "%folder5%\sources.xml" "%folder1%\sources.xml"
  404.  
  405. ECHO ^<advancedsettings^> > "%folder5%\advancedsettings.xml"
  406.  
  407. ECHO ^<videodatabase^> >> "%folder5%\advancedsettings.xml"
  408. ECHO ^<type^>mysql^</type^> >> "%folder5%\advancedsettings.xml"
  409. ECHO ^<host^>%ipaddress%^</host^> >> "%folder5%\advancedsettings.xml"
  410. ECHO ^<port^>3306^</port^> >> "%folder5%\advancedsettings.xml"
  411. ECHO ^<user^>%username%^</user^> >> "%folder5%\advancedsettings.xml"
  412. ECHO ^<pass^>%password%^</pass^> >> "%folder5%\advancedsettings.xml"
  413. ECHO ^<name^>%database2%^</name^> >> "%folder5%\advancedsettings.xml"
  414. ECHO ^</videodatabase^> >> "%folder5%\advancedsettings.xml"
  415.  
  416. ECHO ^<musicdatabase^> >> "%folder5%\advancedsettings.xml"
  417. ECHO ^<type^>mysql^</type^> >> "%folder5%\advancedsettings.xml"
  418. ECHO ^<host^>%ipaddress%^</host^> >> "%folder5%\advancedsettings.xml"
  419. ECHO ^<port^>3306^</port^> >> "%folder5%\advancedsettings.xml"
  420. ECHO ^<user^>%username%^</user^> >> "%folder5%\advancedsettings.xml"
  421. ECHO ^<pass^>%password%^</pass^> >> "%folder5%\advancedsettings.xml"
  422. ECHO ^<name^>%database2%^</name^> >> "%folder5%\advancedsettings.xml"
  423. ECHO ^</musicdatabase^> >> "%folder5%\advancedsettings.xml"
  424.  
  425. IF [%buffer%] == [1] (
  426.  
  427. ECHO ^<network^> >> "%folder5%\advancedsettings.xml"
  428. ECHO ^<buffermode^>1^</buffermode^> >> "%folder5%\advancedsettings.xml"
  429. ECHO ^<cachemembuffersize^>0^</cachemembuffersize^> >> "%folder5%\advancedsettings.xml"
  430. ECHO ^<readbufferfactor^>9999^</readbufferfactor^> >> "%folder5%\advancedsettings.xml"
  431. ECHO ^</network^> >> "%folder5%\advancedsettings.xml"
  432.  
  433. )
  434.  
  435. ECHO ^</advancedsettings^> >> "%folder5%\advancedsettings.xml"
  436.  
  437. )
  438.  
  439.  
  440.  
  441.  
  442.  
  443. ECHO.
  444. ECHO.
  445. ECHO --------------------------------------------------
  446. ECHO --------------------------------------------------
  447. ECHO -------------- CONFIGURING PROFILES --------------
  448. ECHO --------------------------------------------------
  449. ECHO --------------------------------------------------
  450. ECHO.
  451. ECHO.
  452.  
  453.  
  454.  
  455.  
  456.  
  457. IF NOT [%name1%] == [] (
  458.  
  459. SET /a profiles = %profiles% + 1
  460.  
  461. )
  462.  
  463. IF NOT [%name2%] == [] (
  464.  
  465. SET /a profiles = %profiles% + 1
  466.  
  467. )
  468.  
  469. IF NOT [%name3%] == [] (
  470.  
  471. SET /a profiles = %profiles% + 1
  472.  
  473. )
  474.  
  475. IF NOT [%name4%] == [] (
  476.  
  477. SET /a profiles = %profiles% + 1
  478.  
  479. )
  480.  
  481. IF NOT [%name5%] == [] (
  482.  
  483. SET /a profiles = %profiles% + 1
  484.  
  485. )
  486.  
  487.  
  488.  
  489.  
  490.  
  491. ECHO ^<profiles^> > "%folder1%\profiles.xml"
  492. ECHO ^<lastloaded^>0^</lastloaded^> >> "%folder1%\profiles.xml"
  493.  
  494. IF [%profiles%] == [1] (
  495.  
  496. ECHO ^<useloginscreen^>false^</useloginscreen^> >> "%folder1%\profiles.xml"
  497.  
  498. )
  499.  
  500. IF [%profiles%] GEQ [2] (
  501.  
  502. ECHO ^<useloginscreen^>true^</useloginscreen^> >> "%folder1%\profiles.xml"
  503.  
  504. )
  505.  
  506. ECHO ^<autologin^>0^</autologin^> >> "%folder1%\profiles.xml"
  507. ECHO ^<nextIdProfile^>%profiles%^</nextIdProfile^> >> "%folder1%\profiles.xml"
  508.  
  509.  
  510.  
  511. IF NOT [%name1%] == [] (
  512.  
  513. ECHO ^<profile^> >> "%folder1%\profiles.xml"
  514. ECHO ^<id^>0^</id^> >> "%folder1%\profiles.xml"
  515. ECHO ^<name^>%name1%^</name^> >> "%folder1%\profiles.xml"
  516. ECHO ^<directory pathversion="1"^>special://masterprofile/^</directory^> >> "%folder1%\profiles.xml"
  517. ECHO ^<thumbnail pathversion="1"^>^</thumbnail^> >> "%folder1%\profiles.xml"
  518. ECHO ^<hasdatabases^>true^</hasdatabases^> >> "%folder1%\profiles.xml"
  519. ECHO ^<canwritedatabases^>true^</canwritedatabases^> >> "%folder1%\profiles.xml"
  520. ECHO ^<hassources^>true^</hassources^> >> "%folder1%\profiles.xml"
  521. ECHO ^<canwritesources^>true^</canwritesources^> >> "%folder1%\profiles.xml"
  522. ECHO ^<lockaddonmanager^>false^</lockaddonmanager^> >> "%folder1%\profiles.xml"
  523. ECHO ^<locksettings^>0^</locksettings^> >> "%folder1%\profiles.xml"
  524. ECHO ^<lockfiles^>false^</lockfiles^> >> "%folder1%\profiles.xml"
  525. ECHO ^<lockmusic^>false^</lockmusic^> >> "%folder1%\profiles.xml"
  526. ECHO ^<lockvideo^>false^</lockvideo^> >> "%folder1%\profiles.xml"
  527. ECHO ^<lockpictures^>false^</lockpictures^> >> "%folder1%\profiles.xml"
  528. ECHO ^<lockprograms^>false^</lockprograms^> >> "%folder1%\profiles.xml"
  529. ECHO ^<lockmode^>0^</lockmode^> >> "%folder1%\profiles.xml"
  530. ECHO ^<lockcode^>-^</lockcode^> >> "%folder1%\profiles.xml"
  531. ECHO ^<lastdate^>01/01/2014 - 12:00 AM^</lastdate^> >> "%folder1%\profiles.xml"
  532. ECHO ^</profile^> >> "%folder1%\profiles.xml"
  533.  
  534. )
  535.  
  536.  
  537.  
  538. IF NOT [%name2%] == [] (
  539.  
  540. ECHO ^<profile^> >> "%folder1%\profiles.xml"
  541. ECHO ^<id^>1^</id^> >> "%folder1%\profiles.xml"
  542. ECHO ^<name^>%name2%^</name^> >> "%folder1%\profiles.xml"
  543. ECHO ^<directory pathversion="1"^>profiles/b/^</directory^> >> "%folder1%\profiles.xml"
  544. ECHO ^<thumbnail pathversion="1"^>^</thumbnail^> >> "%folder1%\profiles.xml"
  545. ECHO ^<hasdatabases^>true^</hasdatabases^> >> "%folder1%\profiles.xml"
  546. ECHO ^<canwritedatabases^>true^</canwritedatabases^> >> "%folder1%\profiles.xml"
  547. ECHO ^<hassources^>true^</hassources^> >> "%folder1%\profiles.xml"
  548. ECHO ^<canwritesources^>true^</canwritesources^> >> "%folder1%\profiles.xml"
  549. ECHO ^<lockaddonmanager^>false^</lockaddonmanager^> >> "%folder1%\profiles.xml"
  550. ECHO ^<locksettings^>0^</locksettings^> >> "%folder1%\profiles.xml"
  551. ECHO ^<lockfiles^>false^</lockfiles^> >> "%folder1%\profiles.xml"
  552. ECHO ^<lockmusic^>false^</lockmusic^> >> "%folder1%\profiles.xml"
  553. ECHO ^<lockvideo^>false^</lockvideo^> >> "%folder1%\profiles.xml"
  554. ECHO ^<lockpictures^>false^</lockpictures^> >> "%folder1%\profiles.xml"
  555. ECHO ^<lockprograms^>false^</lockprograms^> >> "%folder1%\profiles.xml"
  556. ECHO ^<lockmode^>0^</lockmode^> >> "%folder1%\profiles.xml"
  557. ECHO ^<lockcode^>-^</lockcode^> >> "%folder1%\profiles.xml"
  558. ECHO ^<lastdate^>01/01/2014 - 12:00 AM^</lastdate^> >> "%folder1%\profiles.xml"
  559. ECHO ^</profile^> >> "%folder1%\profiles.xml"
  560.  
  561. )
  562.  
  563.  
  564.  
  565. IF NOT [%name3%] == [] (
  566.  
  567. ECHO ^<profile^> >> "%folder1%\profiles.xml"
  568. ECHO ^<id^>2^</id^> >> "%folder1%\profiles.xml"
  569. ECHO ^<name^>%name3%^</name^> >> "%folder1%\profiles.xml"
  570. ECHO ^<directory pathversion="1"^>profiles/c/^</directory^> >> "%folder1%\profiles.xml"
  571. ECHO ^<thumbnail pathversion="1"^>^</thumbnail^> >> "%folder1%\profiles.xml"
  572. ECHO ^<hasdatabases^>true^</hasdatabases^> >> "%folder1%\profiles.xml"
  573. ECHO ^<canwritedatabases^>true^</canwritedatabases^> >> "%folder1%\profiles.xml"
  574. ECHO ^<hassources^>true^</hassources^> >> "%folder1%\profiles.xml"
  575. ECHO ^<canwritesources^>true^</canwritesources^> >> "%folder1%\profiles.xml"
  576. ECHO ^<lockaddonmanager^>false^</lockaddonmanager^> >> "%folder1%\profiles.xml"
  577. ECHO ^<locksettings^>0^</locksettings^> >> "%folder1%\profiles.xml"
  578. ECHO ^<lockfiles^>false^</lockfiles^> >> "%folder1%\profiles.xml"
  579. ECHO ^<lockmusic^>false^</lockmusic^> >> "%folder1%\profiles.xml"
  580. ECHO ^<lockvideo^>false^</lockvideo^> >> "%folder1%\profiles.xml"
  581. ECHO ^<lockpictures^>false^</lockpictures^> >> "%folder1%\profiles.xml"
  582. ECHO ^<lockprograms^>false^</lockprograms^> >> "%folder1%\profiles.xml"
  583. ECHO ^<lockmode^>0^</lockmode^> >> "%folder1%\profiles.xml"
  584. ECHO ^<lockcode^>-^</lockcode^> >> "%folder1%\profiles.xml"
  585. ECHO ^<lastdate^>01/01/2014 - 12:00 AM^</lastdate^> >> "%folder1%\profiles.xml"
  586. ECHO ^</profile^> >> "%folder1%\profiles.xml"
  587.  
  588. )
  589.  
  590.  
  591.  
  592. IF NOT [%name4%] == [] (
  593.  
  594. ECHO ^<profile^> >> "%folder1%\profiles.xml"
  595. ECHO ^<id^>3^</id^> >> "%folder1%\profiles.xml"
  596. ECHO ^<name^>%name4%^</name^> >> "%folder1%\profiles.xml"
  597. ECHO ^<directory pathversion="1"^>profiles/d/^</directory^> >> "%folder1%\profiles.xml"
  598. ECHO ^<thumbnail pathversion="1"^>^</thumbnail^> >> "%folder1%\profiles.xml"
  599. ECHO ^<hasdatabases^>true^</hasdatabases^> >> "%folder1%\profiles.xml"
  600. ECHO ^<canwritedatabases^>true^</canwritedatabases^> >> "%folder1%\profiles.xml"
  601. ECHO ^<hassources^>true^</hassources^> >> "%folder1%\profiles.xml"
  602. ECHO ^<canwritesources^>true^</canwritesources^> >> "%folder1%\profiles.xml"
  603. ECHO ^<lockaddonmanager^>false^</lockaddonmanager^> >> "%folder1%\profiles.xml"
  604. ECHO ^<locksettings^>0^</locksettings^> >> "%folder1%\profiles.xml"
  605. ECHO ^<lockfiles^>false^</lockfiles^> >> "%folder1%\profiles.xml"
  606. ECHO ^<lockmusic^>false^</lockmusic^> >> "%folder1%\profiles.xml"
  607. ECHO ^<lockvideo^>false^</lockvideo^> >> "%folder1%\profiles.xml"
  608. ECHO ^<lockpictures^>false^</lockpictures^> >> "%folder1%\profiles.xml"
  609. ECHO ^<lockprograms^>false^</lockprograms^> >> "%folder1%\profiles.xml"
  610. ECHO ^<lockmode^>0^</lockmode^> >> "%folder1%\profiles.xml"
  611. ECHO ^<lockcode^>-^</lockcode^> >> "%folder1%\profiles.xml"
  612. ECHO ^<lastdate^>01/01/2014 - 12:00 AM^</lastdate^> >> "%folder1%\profiles.xml"
  613. ECHO ^</profile^> >> "%folder1%\profiles.xml"
  614.  
  615. )
  616.  
  617.  
  618.  
  619. IF NOT [%name5%] == [] (
  620.  
  621. ECHO ^<profile^> >> "%folder1%\profiles.xml"
  622. ECHO ^<id^>4^</id^> >> "%folder1%\profiles.xml"
  623. ECHO ^<name^>%name5%^</name^> >> "%folder1%\profiles.xml"
  624. ECHO ^<directory pathversion="1"^>profiles/e/^</directory^> >> "%folder1%\profiles.xml"
  625. ECHO ^<thumbnail pathversion="1"^>^</thumbnail^> >> "%folder1%\profiles.xml"
  626. ECHO ^<hasdatabases^>true^</hasdatabases^> >> "%folder1%\profiles.xml"
  627. ECHO ^<canwritedatabases^>true^</canwritedatabases^> >> "%folder1%\profiles.xml"
  628. ECHO ^<hassources^>true^</hassources^> >> "%folder1%\profiles.xml"
  629. ECHO ^<canwritesources^>true^</canwritesources^> >> "%folder1%\profiles.xml"
  630. ECHO ^<lockaddonmanager^>false^</lockaddonmanager^> >> "%folder1%\profiles.xml"
  631. ECHO ^<locksettings^>0^</locksettings^> >> "%folder1%\profiles.xml"
  632. ECHO ^<lockfiles^>false^</lockfiles^> >> "%folder1%\profiles.xml"
  633. ECHO ^<lockmusic^>false^</lockmusic^> >> "%folder1%\profiles.xml"
  634. ECHO ^<lockvideo^>false^</lockvideo^> >> "%folder1%\profiles.xml"
  635. ECHO ^<lockpictures^>false^</lockpictures^> >> "%folder1%\profiles.xml"
  636. ECHO ^<lockprograms^>false^</lockprograms^> >> "%folder1%\profiles.xml"
  637. ECHO ^<lockmode^>0^</lockmode^> >> "%folder1%\profiles.xml"
  638. ECHO ^<lockcode^>-^</lockcode^> >> "%folder1%\profiles.xml"
  639. ECHO ^<lastdate^>01/01/2014 - 12:00 AM^</lastdate^> >> "%folder1%\profiles.xml"
  640. ECHO ^</profile^> >> "%folder1%\profiles.xml"
  641.  
  642. )
  643.  
  644.  
  645.  
  646. ECHO ^</profiles^> >> "%folder1%\profiles.xml"
  647.  
  648.  
  649.  
  650.  
  651.  
  652. ECHO.
  653. ECHO.
  654. ECHO --------------------------------------------------
  655. ECHO --------------------------------------------------
  656. ECHO -------------------- RUN KODI --------------------
  657. ECHO --------------------------------------------------
  658. ECHO --------------------------------------------------
  659. ECHO -------------------- ENJOY :) --------------------
  660. ECHO --------------------------------------------------
  661. ECHO --------------------------------------------------
  662. ECHO.
  663. ECHO.
  664.  
  665.  
  666.  
  667.  
  668.  
  669. PAUSE
Advertisement
RAW Paste Data Copied
Advertisement