How to input variables into .bat file
Posted: 12 Jan 2014, 04:39
I'm having trouble puting the variables from uTorrent into a .bat file that contains my Filebot script.
This is the command I have in the "Run this Program" in uTorrent.
The .exe just removes the torrent from uTorrent when it is finished downloading.
This is the Filebot script in the .bat file.
This is the Logger tab information.
This is the command I have in the "Run this Program" in uTorrent.
Code: Select all
"C:\Rm_Finished_Torrents\Rm.Finished.Torrents.exe" "C:\Rm_Finished_Torrents\Filebot_Rename.bat" "%D" "%F" "%K" "%N" "%L" "%S"
This is the Filebot script in the .bat file.
Code: Select all
filebot.launcher -script fn:amc --output "G:/" --log-file amc.log --action move --conflict override -non-strict --def "seriesFormat=TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}/{n} {s00e00} {t}" "movieFormat=New Movies/{n} ({y}) {\"[$vf]\"}/{n} ({y})" --def clean=y --def plex=localhost "ut_dir=%1" "ut_file=%2" "ut_kind=%3" "ut_title=%4" "ut_label=%5" "ut_state=%6"
This is my amc.log[2014-01-11 22:38:37] Executing: "C:\Rm_Finished_Torrents\Rm.Finished.Torrents.exe" "C:\Rm_Finished_Torrents\Filebot_Rename.bat" "C:\Users\Amishman\Downloads\City of Angels (1998)" "City.of.Angels.1998.BRRip.x264.AAC.m-H.D.mkv" "multi" "City of Angels (1998)" "" "5"
The directory is getting split into the other variables. If I run the script from the CLI, with the supplied variables from uTorrent, the script runs perfect. How can I enter variables into the .bat so it does not get split up?Jan 11, 2014 10:38:38 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Parameter: seriesFormat = TV/{n}/{'Season '+s.pad(1)}/{s00e00} {t}/{n} {s00e00} {t}
Parameter: movieFormat = New Movies/{n} ({y}) {"[$vf]"}/{n} ({y})
Parameter: clean = y
Parameter: plex = localhost
Parameter: ut_dir = 'C:\Users\Amishman\Downloads\City'
Parameter: ut_file = of
Parameter: ut_kind = Angels
Parameter: ut_title = (1998)
Parameter: ut_label = City.of.Angels.1998.BRRip.x264.AAC.m-H.D.mkv
Parameter: ut_state = multi
Done ヾ(@⌒ー⌒@)ノ