Page 1 of 1

CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 5:01 pm
by Alex Ivanovich
I need to launch a batch file from CATVids

the file has .cmd extension and is located in a folder along with wget

I created this code (the name changes the base to the actor)

Code: Select all

<!-- Link a wget cmd -->
		<A HREF="file:E:\==DATABASE==\CATVids\~~Documenti~~\{name}.cmd"> Aggiorna Biografie (html) </A>
        <!-- Link a wget cmd -->
but when I start it I'm mistaken in a Dos window (translation from Italian)

'wget' not recognized as an internal or external command,
operable program or batch file.


Thank for help

Re: CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 9:32 pm
by LotsOCds
You need to provide the full path to wget.exe in the cmd file.

Re: CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 9:40 pm
by Alex Ivanovich
Strange, if I go to the folder and click on the .cmd file it all works (wget.exe and in the same folder)
from CATVids does not work :|

how do i write the path? :roll:

Re: CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 10:14 pm
by LotsOCds
Alex Ivanovich wrote:Strange, if I go to the folder and click on the .cmd file it all works (wget.exe and in the same folder)
from CATVids does not work :|
Probably because wget.exe is in the PATH in that environment. It is not in the PATH of the environment started by CATvids.
how do i write the path? :roll:
Instead of just "wget.exe" put the full path in the cmd file. Something like "C:\Program Files (x86)\WinWget\wget\wget.exe". Watch out for spaces in the path. The path will require appropriate quote marks.

Re: CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 10:35 pm
by Alex Ivanovich
This work :)

Code: Select all

"E:\==DATABASE==\CATVids\~~Documenti~~\wget.exe" --progress=bar:force  --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/40.0.3" -k  -p -c  https://it.wikipedia.org/wiki/Elizabeth_Montgomery
Thanks Dave :D

this can help me?

viewtopic.php?f=8&t=260#p1312

Re: CATVids - running a batch file with wget

Posted: Mon Sep 11, 2017 11:40 pm
by Alex Ivanovich
I forgot :|

after updating the file, it can display a text with the update date :roll:
example:
file updated 12.09.2017

Re: CATVids - running a batch file with wget

Posted: Tue Sep 12, 2017 5:49 am
by LotsOCds
You need to be more specific. I do not know what file you are talking about or how it is created.

Re: CATVids - running a batch file with wget

Posted: Tue Sep 12, 2017 7:47 am
by Alex Ivanovich
view for each attached file (if they are many), the update date
example:
file 1: update 11.09.2017
file 2: update 12.09.2017
etc..

Person.xsl template

Field_FileLinks

Re: CATVids - running a batch file with wget

Posted: Tue Sep 12, 2017 2:55 pm
by LotsOCds
If I understand correctly, you want Person.xsl to read and display display the file modification date? This is not possible since XSL cannot read the file dates.

Re: CATVids - running a batch file with wget

Posted: Tue Sep 12, 2017 3:58 pm
by Alex Ivanovich
yes, you understand correct

thanky ;)