[Jslib] jsLib

pd an0n1m0us at gmail.com
Mon Aug 31 16:11:02 PDT 2009


On Tue, Sep 1, 2009 at 2:38 AM, Pete Collins <pete at mozdevgroup.com> wrote:
>
>> however even though that application takes a file path as an argument when run from the Windows XP cmd prompt, I can't get this (for example) to work:
>>
>>  fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe",        "c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi");
>>
>> Thanks again for your great work on jsLib everyone, any help would be greatly appreciated.
>>
>>
>
> Does
>
> fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe");
>
> work correctly?

Hi Pete, thanks for your reply

Yes it does. I actually screwed up my example a little. Here's more:

Works:

fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe");
fu.run("c:\\Progra~1\\mplayerc\\mplayerc.exe");

Fails:

fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe",
"c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi");

fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe",
"c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi");
fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe", "c:\incoming\RushS2E7.avi");
fu.run("c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe",
"c:\\incoming\\RushS2E7.avi");

fu.run("c:\\Progra~1\\mplayerc\\mplayerc.exe",
"c:\\incoming\\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi");
fu.run("c:\\Progra~1\\mplayerc\\mplayerc.exe",
"c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi");
fu.run("c:\\Progra~1\\mplayerc\\mplayerc.exe", "c:\incoming\RushS2E7.avi");
fu.run("c:\\Progra~1\\mplayerc\\mplayerc.exe", "c:\\incoming\\RushS2E7.avi");

So 8.3 filenames and escaping backlashes do not seem to help.

Both programs launch without any secondary parameter. It's possible
mplayerc.exe needs another /open or /play parameter but it definitely
takes command line params and I just tested it without /open or /play
from the command prompt and it works fine.

I've looked at the FileUtils.js run method and there's code that
provides errors but I'm not seeing any errors in he Error Console.

Thanks
pd

> --pete
>
> --
> Pete Collins - Founder, Mozdev Group Inc.
> www.mozdevgroup.com
> Mozilla Software Development Solutions
> tel: 1-719-302-5811
> fax: 1-719-302-5813
>
> _______________________________________________
> Jslib mailing list
> Jslib at mozdev.org
> https://www.mozdev.org/mailman/listinfo/jslib


More information about the Jslib mailing list