Guest User

5 User XBMC - Client Setup 1.3 for Windows

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