Search found 18 matches

by sabelstrom
12 Jan 2017 04:32
Forum: DOS Batch Forum
Topic: Rename files in subfolders based on folder or other file?
Replies: 2
Views: 3179

Re: Rename files in subfolders based on folder or other file?

Used Bulk Rename Utility.

Didnt work on network so had to move the library arund but now its working :-)
by sabelstrom
12 Jan 2017 02:37
Forum: DOS Batch Forum
Topic: Force start and close a program on Windows 7 startup?
Replies: 2
Views: 2870

Re: Force start and close a program on Windows 7 startup?

Got a solution in another forum: Save this as STARTKODI.JS. Execute it anywhere you can at start of Windows. WshShell = WScript.CreateObject("WScript.shell"); var command="kodi.exe"; //this may needs to be path fully qualified. task=WshShell.Exec(command); WScript.Sleep(10000); t...
by sabelstrom
11 Jan 2017 16:18
Forum: DOS Batch Forum
Topic: Force start and close a program on Windows 7 startup?
Replies: 2
Views: 2870

Force start and close a program on Windows 7 startup?

Hi. I have a problem with Kodi 16 and 17 on my sons computer, some error with DX11, it cant be solved so i need a short cut. First time after each reboot i start Kodi i get a error "Kodi is not responding" five seconds later it disappears and Kodi starts with a black screen, Alt + Tab solv...
by sabelstrom
11 Jan 2017 16:04
Forum: DOS Batch Forum
Topic: Rename files in subfolders based on folder or other file?
Replies: 2
Views: 3179

Rename files in subfolders based on folder or other file?

Hi Since Kodi is updated i cant get my library to work properly, its a filename that is wrong. Example: Folder: Kids movies Sub-folder: Aladdin Files in sub-folder: Aladdin.mkv, poster.jpg, Aladdin-fanart.jpg and Aladdin.nfo Now the problem is that the poster.jpg must be named Aladdin-poster.jpg for...
by sabelstrom
12 Oct 2016 16:45
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Thank you. :-)

The title can be in any language and contain more than the title.

Your thoughts is nice, but I put some effort in to rename all movies and episode to Swedish.
by sabelstrom
12 Oct 2016 15:57
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Now i get it all :-)

I had to change the interface langue in KODI to Swedish for it to use the right symbols.

But the java script dose not use the filename as title if the movie already have a title in it.
by sabelstrom
10 Oct 2016 16:28
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

My code should already do that. I could add the status output like in penpen's code but it will still not prepend the BOM (for the reasons I already mentioned above). @if (@a)==(@b) @end /* @echo off &setlocal for /r %%i in (*.mkv *.avi *.wmv) do ( cscript //nologo //e:jscript "%~fs0"...
by sabelstrom
10 Oct 2016 15:54
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Naild it Did some google on the chcp, and i turned out i needed to use chcp 1252. Used Notpad++ to change in the file, UTF-8 (no BOM) format. Thank you very much every one for your help Now i feel dumb when asking more of u, but is it possible to get the playtime in the nfo to? The final code i used...
by sabelstrom
10 Oct 2016 09:12
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Got this answer in another forum, is there somthing to do with that: "The answer is code pages, my friend! See: chcp /? Useful list of code pages here Try using chcp 1252 Which is the Windows West European Latin 1 code page. If it doesn't work, check if any of the other ones work. You can also...
by sabelstrom
10 Oct 2016 06:12
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Got this answer in another forum, is there somthing to do with that: "The answer is code pages, my friend! See: chcp /? Useful list of code pages here Try using chcp 1252 Which is the Windows West European Latin 1 code page. If it doesn't work, check if any of the other ones work. You can also ...
by sabelstrom
10 Oct 2016 05:17
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Thanks. The create_nfo_aGerman.bat create all nfofiles but uses something like "Ã¥ Ã… ä Ä ö Ö é" in the title. The create_nfo_penpen create all nfofiles that dont contain å Å ä Ä ö Ö é and then create a empty nfofile for the first move that contain å Å ä Ä ö Ö é in the filename. And o...
by sabelstrom
09 Oct 2016 16:41
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

It does not create nfo files for those files that uses å Å ä Ä ö Ö é anymore. Can you copy one of those files to a folder somewhere else, and then run the script for that new folder? Make sure you open a cmd window and then start the batch script from that cmd window. Any error messages should rema...
by sabelstrom
09 Oct 2016 16:34
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

It dose not create nfo files for those files that uses å Å ä Ä ö Ö é anymore. If the above batch replaces "å Å ä Ä ö Ö é" by something like "Ã¥ Ã… ä Ä ö Ö é", then this is intended: It is the UTF-8 encoding. Some text editors may have problems to interpret an UTF-8 text fil...
by sabelstrom
09 Oct 2016 04:55
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

I've updated the above code, removing the bugs aGerman has found (thanks ): Hope it now works without errors. penpen Tested it, now the nfo files have the file extension to, aristocats.avi.nfo it it was right the first time when the name was aristocats.nfo It does not create nfo files for those fil...
by sabelstrom
09 Oct 2016 04:48
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 21477

Re: Creating NFO style xml files with filenames included inside the file.

Copy the code into a batch file (that is, a text file with extension .bat) in order to run it properly. ⋅ open Notepad (Press [Windows]+[R], type notepad , and click on OK) ⋅ paste the code into the editor window ⋅ menu "File" -> "Save as ..." &sdot...