UNC path as --output throws "java.io.IOException"

Support for Windows users
Post Reply
traxxus
Posts: 8
Joined: 27 Aug 2015, 08:50

UNC path as --output throws "java.io.IOException"

Post by traxxus »

Hi

My batch script suddenly stopped to work. Maybe it is the latest Java update i made...

Sysinfo:

Code: Select all

C:\Program Files\FileBot>filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.78
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 455 MB Max Memory / 41 MB Used Memory
OS: Windows Server 2012 R2 (amd64)
Package: MSI
Data: C:\Users\Administrator\AppData\Roaming\FileBot
Done ?(?????)?
The batch looks like this:

Code: Select all

call filebot.exe -script fn:amc --output="\\192.168.200.10" --action move --conflict auto -non-strict "T:/JDownloader/entpackt" --def music=n plex=192.168.200.25 --lang de --log-file T:/JDownloader/amc.log
But i get this error:

Code: Select all

Run script [fn:amc] at [Tue May 03 14:12:59 CEST 2016]
Parameter: music = n
Parameter: plex = 192.168.200.25
Argument: T:\JDownloader\entpackt
Invalid argument
java.io.IOException: Invalid argument
        at java_io_File$getCanonicalFile.call(Unknown Source)
        at Script1.run(Script1.groovy:13)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:11
4)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:120)
Failure (┬░_┬░)
I think it has to do with the UNC path --output="\\192.168.200.10"
But this worked before :o
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch script stopped working

Post by rednoah »

--output is expected to be a valid folder.

UNC paths are defined as \\server\share so you're missing the share part.
:idea: Please read the FAQ and How to Request Help.
traxxus
Posts: 8
Joined: 27 Aug 2015, 08:50

Re: UNC path as --output throws "java.io.IOException"

Post by traxxus »

Hm... when i open \\192.168.200.10 in the windows explorer i get a list of all the shared folders, like:
TV Shows
Movies
Music

So i can't add \share , beaucse they are not in the same folder.. and i can define only 1 --output , right?

Edit:
I did it with seriesFormat and moviesFormat for now....

Code: Select all

call filebot.exe -script fn:amc --output="\\192.168.200.10/Temp" --action move --conflict auto -non-strict "T:/JDownloader/entpackt" --def seriesFormat="\\192.168.200.10/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}" moviesFormat="\\192.168.200.10/Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}" music=n plex=192.168.200.25 --lang de --log-file T:/JDownloader/amc.log
Post Reply