[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
YAMJ automatic with Windows 7
01-27-2011, 10:21 PM
Post: #1
YAMJ automatic with Windows 7
Some time ago I had to rebuild my PC, and went from XP to Windows 7.

I've now gotten around to re-doing YAMJ. I have the latest version (as of last week) from the dev site, all works well. Great.

Except now I'm trying to get this working with Task Scheduler in Windows 7; worked flawlessly in XP.

It just doesn't seem to run. I've tried calling from both .bat and .cmd files. I've made sure my account has the rights to run as a task.

It works fine when I run the doYAMJ.bat (or .cmd) directly.

Anyone have this working from Windows 7 Task Scheduler?
Find all posts by this user
01-27-2011, 11:07 PM
Post: #2
RE: YAMJ automatic with Windows 7
Make sure that the task is set to "start in" the folder that contains doYAMJ.bat.
Task properties/Actions/Edit will take you to a window with a field for "Start in (optional)" - enter the path to the batch file in this field and give it another shot.
Find all posts by this user
01-28-2011, 12:03 AM
Post: #3
RE: YAMJ automatic with Windows 7
Yep, thanks, Tromos, but definitely one of the first things I tried.

Contents of doYAMJ.bat:
Quote:c:
cd \Drivers\PCH\YAMJ\
cmd /c moviejukebox libraries.xml -o P:\
del p:\index.htm


Scheduled task is set to run as myself (have tried SYSTEM as well), run whether logged in or not, run with highest privileges.

Action field has:

C:\Drivers\PCH\YAMJ\doYAMJ.bat

And Start in has:

C:\Drivers\PCH\YAMJ\
Find all posts by this user
01-28-2011, 12:16 AM
Post: #4
RE: YAMJ automatic with Windows 7
did you look in event viewer for errors? or looka t the log and see if maybe it's trying to run without access to where your files are located?
Find all posts by this user
01-28-2011, 12:26 AM
Post: #5
RE: YAMJ automatic with Windows 7
Yep, not seeing anything obvious in Event Viewer:

Quote:Task Scheduler launched "{13d88155-98c0-4295-b695-b379c1820541}" instance of task "\doYAMJ" for user "johns" .

Task Scheduler started Task Engine "S-1-5-21-3872652499-1349995051-3441213424-1001:pluto\johns:Password:Highest" process. Command="taskeng.exe" , ProcessID=1596, ThreadID=1212

Task Scheduler started Task Engine "S-1-5-21-3872652499-1349995051-3441213424-1001:pluto\johns:Password:Highest" process.

Task Engine "S-1-5-21-3872652499-1349995051-3441213424-1001:pluto\johns:Password:Highest" received a message from Task Scheduler service requesting to launch task "\doYAMJ" .

Task Scheduler started "{13d88155-98c0-4295-b695-b379c1820541}" instance of the "\doYAMJ" task for user "pluto\johns".

Task Scheduler launched action "C:\Drivers\PCH\YAMJ\doYAMJ.cmd" in instance "{13d88155-98c0-4295-b695-b379c1820541}" of task "\doYAMJ".

Task Scheduler launch task "\doYAMJ" , instance "C:\Windows\SYSTEM32\cmd.exe" with process ID 4940.

Task Scheduler successfully completed task "\doYAMJ" , instance "{13d88155-98c0-4295-b695-b379c1820541}" , action "C:\Windows\SYSTEM32\cmd.exe" with return code 1.

Task Scheduler successfully finished "{13d88155-98c0-4295-b695-b379c1820541}" instance of the "\doYAMJ" task for user "pluto\johns".

So other than the "return code 1", seems like it thinks things are successful.

Is there any other log for YAMJ?

As for permissions, I'm running it as myself ("johns"), and certainly I have permissions to the files (as it runs without incident when running directly).
Find all posts by this user
01-28-2011, 01:08 AM
Post: #6
RE: YAMJ automatic with Windows 7
the yamj log is in the folder your cmd file is.. does your bat file literally say cmd in it? because it needs the full filename to run and it would be best to put call cmdfilename.cmd (the rest of hte line)

when running without logged in especially after the machine first boots, a lot of thigns are login dependent, like drive letters mapped to shares.. they aren't readily attached just because hte machine is on
Find all posts by this user
01-28-2011, 01:20 AM
Post: #7
RE: YAMJ automatic with Windows 7
Aha; yes, thanks. The logfile has a clue:
Quote:Using 4 processing threads and 4 downloading threads...
Preparing environment...
Failed creating jukebox directory. Ensure this directory is read/write!
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at com.moviejukebox.MovieJukebox.generateLibrary(MovieJukebox.java:750)
at com.moviejukebox.MovieJukebox.main(MovieJukebox.java:414)

So I would think this is referring to the output argument of P:

Ahh, and while it is mapped as me, I know the credentials used to map it are "nmt" on the PCH itself... hrm... not sure how to resolve that.
Find all posts by this user
01-28-2011, 03:15 AM
Post: #8
RE: YAMJ automatic with Windows 7
So specifying the destination with UNC (\\192.168.10.222\share\) rather than drive letter seems to have resolved the issue.

Thanks for your help!
Find all posts by this user
01-28-2011, 07:53 AM
Post: #9
RE: YAMJ automatic with Windows 7
That would have been my suggestion.

When you run as another user (even the same username, but a different session) it doesn't copy some user settings like the drive mappings.

You could also have just put a "net use p:\ \\whateverpath\" at the start of your command file to keep things simple

Visit this user's website Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Banner help - YAMJ with eversion rave777 4 822 Yesterday 08:14 AM
Last Post: Omertron
Sad [YAMJ] YAMJ does not create scan files Jascha 16 370 05-18-2013 05:01 PM
Last Post: jluc2808
  How to Setup Two YAMJ Jukeboxes? Cappy1 17 389 05-16-2013 08:38 PM
Last Post: Cappy1
  YAMJ-EVERSION-A300 Arry 12 383 05-15-2013 12:05 PM
Last Post: Omertron
  YAMJ/ Eversion help flombs 3 278 05-11-2013 11:39 AM
Last Post: flombs
  Auto load YAMJ (using Eversion skin) on PCH A-300 Woodgnome 59 12,275 05-05-2013 02:32 PM
Last Post: BlueWater84
  [YAMJ] JAVA 1.7 update 21 makes YAMJ crash! Specter 9 1,071 04-28-2013 04:52 PM
Last Post: Specter
  YAMJ 2.9 r3675 problem with java Hewon 25 1,526 04-28-2013 04:15 PM
Last Post: Omertron
  YAMJ no longer works at all - USB external drives Bumder 16 1,398 04-26-2013 08:46 PM
Last Post: Aquasport
  [YAMJ] Yamj java problem ? lepermessiah 3 388 04-24-2013 09:15 AM
Last Post: lepermessiah

Forum Jump: