Page 1 of 1

Windows 7 utorrent AMC help

Posted: 31 Dec 2016, 19:50
by lowfront
I recently redid my windows 7 VM and I have spent 5 or 6 hours trying to get AMC auto script to work with no luck. I never had issues getting it working in the past.

This is a screenshot of the network share folder I'm trying to get filebot to see.


https://imgur.com/a/Nr5on

I have already tried every path idea I can think of. Could you just let me know what my path should look like to get to this network drive shared folder?

64bit newest version of filebot and newest 64bit java




I know this isn't right but here is an idea of my attempts

Code: Select all

C:/Program Files/FileBot/filebot.exe -script fn:amc --output "Z:/Completed" --action copy --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
or something like this?

Code: Select all

C:/Program Files/Filebot/filebot.exe -script fn:amc --output "//vmware-host/Shared Folders/Z/Completed" --action copy --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"

Thanks!

Re: Windows 7 utorrent AMC help

Posted: 31 Dec 2016, 20:03
by rednoah
Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features

Re: Windows 7 utorrent AMC help

Posted: 31 Dec 2016, 20:06
by rednoah
Also, you need to quote arguments properly:
viewtopic.php?f=4&t=1899

Open CMD and play with it. Without manually testing things in CMD first, you will never be able to make it work automatically with utorrent.

Re: Windows 7 utorrent AMC help

Posted: 31 Dec 2016, 20:38
by lowfront
When I run

filebot -version

it does show filebot version and java version.

So does that mean I should start with that instead of C:/Program Files/Filebot/filebot.exe ?


and what am I quoting wrong?

--output "Z:/Completed"
--output "//vmware-host/Shared Folders/Z/Completed"

Just get rid of the quotes?


Thanks!

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 05:12
by rednoah
This path contain a space character:

Code: Select all

C:/Program Files/Filebot/filebot.exe
If you copy and paste the path into CMD without thinking, then CMD will say Can't run program: C:/Program.

Please read the tutorial I linked for you: viewtopic.php?f=4&t=1899

YES:

Code: Select all

filebot -script fn:sysinfo
YES:

Code: Select all

"C:/Program Files/Filebot/filebot.exe" -script fn:sysinfo
filebot should work, but if you have %PATH% issues then it may not, and you may need to call the executable via the absolute path.

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 06:15
by lowfront
I read that link you sent me multiple times and makes no sense to me.

Could you just tell me how this path would get translated into the script?

https://imgur.com/a/Nr5on

is this correct?

--output "//vmware-host/Shared Folders/Z/Completed"


Thanks!

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 06:19
by rednoah
Looks good to me:

Code: Select all

--output "//vmware-host/Shared Folders/Z/Completed"
Using mapped drive letters is probably easier though. No quotes required if there's no spaces in the file path.


However, the only way you or I can know for sure if any of the stuff you wrote is working, is by opening CMD and running it, then looking at the output, and checking if it's doing what it's supposed to be doing.

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 06:33
by lowfront

Code: Select all

C:\Users\PC>filebot -script fn:amc --output "//vmware-host/Shared Folders/Z/Comp
leted" --action copy --conflict skip -non-strict --log-file amc.log --def unsort
ed=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "u
t_file=%F" "ut_dir=%D"
Locking C:\Users\PC\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Sun Jan 01 01:48:41 EST 2017]
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = %L
Parameter: ut_state = %S
Parameter: ut_title = %N
Parameter: ut_kind = %K
Parameter: ut_file = %F
Parameter: ut_dir = %D
Bad ut_label value: %L
Bad ut_state value: %S
Bad ut_title value: %N
Bad ut_kind value: %K
Bad ut_file value: %F
Bad ut_dir value: %D
Illegal usage: no input
Failure (┬░_┬░)

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 07:19
by rednoah
rednoah wrote:Troubleshooting
If something is not working, first read the Notes above, then just run the command manually in a new console window and see what happens. You CANNOT run the command without replacing the VARIABLES. The variables have to be replaced with actual values first. You can find the actual cmdline call in the µTorrents Logger tab so you can just copy it from there. You may need to enable the Logger tab first (just right-click one of the other tabs like Info).
@see viewtopic.php?t=215

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 17:18
by rednoah
What does the µTorrents Logger tab say?

Next Steps:

1. Find out what exact command is executed by utorrent
2. Copy this command into CMD and see what happens
3. Fix the command step by step until it works
4. Copy the working command (with variables instead of values) into utorrent

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 18:31
by lowfront

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\PC>filebot -script fn:sysenv Hello World!
# Environment Variables #
=::: ::\
PROCESSOR_REVISION: 3c03
PROCESSOR_LEVEL: 6
COMPUTERNAME: WIN-PLLQ8U1LQ3F
LOGONSERVER: \\WIN-PLLQ8U1LQ3F
FP_NO_HOST_CHECK: NO
ProgramW6432: C:\Program Files
CommonProgramFiles: C:\Program Files\Common Files
HOMEDRIVE: C:
SystemRoot: C:\Windows
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
USERDOMAIN: WIN-PLLQ8U1LQ3F
Path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Wind
ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\F
ileBot\;C:\Program Files\Java\New folder\bin
CommonProgramW6432: C:\Program Files\Common Files
ALLUSERSPROFILE: C:\ProgramData
windows_tracing_logfile: C:\BVTBin\Tests\installpackage\csilogfile.log
ComSpec: C:\Windows\system32\cmd.exe
PUBLIC: C:\Users\Public
NUMBER_OF_PROCESSORS: 2
SESSIONNAME: Console
HOMEPATH: \Users\PC
PROCESSOR_ARCHITECTURE: AMD64
TMP: C:\Users\PC\AppData\Local\Temp
windows_tracing_flags: 3
TEMP: C:\Users\PC\AppData\Local\Temp
LOCALAPPDATA: C:\Users\PC\AppData\Local
=C:: C:\Users\PC
OS: Windows_NT
USERPROFILE: C:\Users\PC
ProgramData: C:\ProgramData
ProgramFiles: C:\Program Files
ProgramFiles(x86): C:\Program Files (x86)
PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
windir: C:\Windows
PROMPT: $P$G
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
SystemDrive: C:
APPDATA: C:\Users\PC\AppData\Roaming
USERNAME: PC


# Java System Properties #
path.separator: ;
jna.library.path: C:\Program Files\FileBot
sun.desktop: windows
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.io.tmpdir: C:\Users\PC\AppData\Roaming\FileBot\tmp
user.country: US
sun.stdout.encoding: cp437
sun.stderr.encoding: cp437
user.home: C:\Users\PC
useExtendedFileAttributes: true
org.apache.commons.logging.Log: org.apache.commons.logging.impl.NoOpLog
java.vm.vendor: Oracle Corporation
user.language: en
java.vendor: Oracle Corporation
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
sun.net.client.defaultReadTimeout: 60000
java.specification.name: Java Platform API Specification
jna.nosys: true
os.name: Windows 7
java.runtime.name: Java(TM) SE Runtime Environment
application.deployment: msi
file.separator: \
jna.boot.library.path: C:\Program Files\FileBot
sun.net.client.defaultConnectTimeout: 10000
java.vm.specification.version: 1.8
sun.boot.class.path: C:\Program Files\Java\New folder\lib\resources.jar;C:\Progr
am Files\Java\New folder\lib\rt.jar;C:\Program Files\Java\New folder\lib\sunrsas
ign.jar;C:\Program Files\Java\New folder\lib\jsse.jar;C:\Program Files\Java\New
folder\lib\jce.jar;C:\Program Files\Java\New folder\lib\charsets.jar;C:\Program
Files\Java\New folder\lib\jfr.jar;C:\Program Files\Java\New folder\classes
java.version: 1.8.0_111
http.agent: FileBot 4.7.5
java.library.path: C:\Program Files\FileBot
awt.toolkit: sun.awt.windows.WToolkit
java.vm.specification.name: Java Virtual Machine Specification
os.version: 6.1
user.variant:
useCreationDate: false
file.encoding: Cp1252
grape.root: C:\Users\PC\AppData\Roaming\FileBot\grape
java.awt.printerjob: sun.awt.windows.WPrinterJob
java.class.version: 52.0
user.script:
java.ext.dirs: C:\Program Files\Java\New folder\lib\ext;C:\Windows\Sun\Java\lib\
ext
java.specification.version: 1.8
net.filebot.AcoustID.fpcalc: C:\Program Files\FileBot\fpcalc.exe
java.vendor.url: http://java.oracle.com/
useNativeShell: false
sun.os.patch.level: Service Pack 1
sun.java.launcher: SUN_STANDARD
os.arch: amd64
user.dir: C:\Users\PC
user.timezone:
line.separator:

java.util.logging.config.file: C:\Program Files\FileBot\logging.properties
sun.cpu.endian: little
java.vm.specification.vendor: Oracle Corporation
java.home: C:\Program Files\Java\New folder
java.net.useSystemProxies: true
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
sun.arch.data.model: 64
java.endorsed.dirs: C:\Program Files\Java\New folder\lib\endorsed
file.encoding.pkg: sun.io
java.specification.vendor: Oracle Corporation
sun.boot.library.path: C:\Program Files\Java\New folder\bin
sun.jnu.encoding: Cp1252
java.runtime.version: 1.8.0_111-b14
java.vm.info: mixed mode
java.vm.version: 25.111-b14
sun.io.unicode.encoding: UnicodeLittle
application.dir: C:\Users\PC\AppData\Roaming\FileBot
java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
sun.java.command: C:\Program Files\FileBot\FileBot.jar -script fn:sysenv Hello W
orld!
java.class.path: C:\Program Files\FileBot\FileBot.jar
jna.nounpack: true
sun.cpu.isalist: amd64
user.name: PC


# Arguments #
args[0] = -script
args[1] = fn:sysenv
args[2] = Hello
args[3] = World!


Done ?(?????)?





does this help anything?

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 18:38
by lowfront
OK I looked at utorrent log and added that to cmd

utorrent auto didn't work. But when I add it to cmd the command does work and correctly organizes the file.

So this whole time I have had the correct command in utorrent its just not working?

Re: Windows 7 utorrent AMC help

Posted: 01 Jan 2017, 18:58
by rednoah
Shell Script Debugging for Beginners wrote:Make sure your script is actually called
@see viewtopic.php?f=4&t=3067

Well, I guess this is pretty good advice. :lol:


The obvious next step: Check if utorrent even runs any of the commands, and if yes, figure out why it's not working.


Check if it's a PATH issue:

Code: Select all

filebot -script fn:sysenv --log-file C:/sysenv1.txt
If it works in CMD, then let's try with CMD:

Code: Select all

cmd /c filebot -script fn:sysenv --log-file C:/sysenv2.txt
If it's a PATH issue, then let's avoid the PATH:

Code: Select all

"/path/to/filebot.exe" -script fn:sysenv --log-file C:/sysenv3.txt