Before the end of 2017 the board will be down for a brief period of time for an upgrade.
Past experience says less than 30 minutes but I can't predict the future.
Also, there is a high probability that the forum will move to a different host, but that will not happen in 2017.
Thanks,
Doug

CATVids - running a batch file with wget

Discuss using and your tips/tricks for CATVids
User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

CATVids - running a batch file with wget

Postby Alex Ivanovich » Mon Sep 11, 2017 5:01 pm

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
Attachments
wget cmd.png
execute cmd file + error Dos
wget cmd.png (215.33 KiB) Viewed 174 times

User avatar
LotsOCds
Posts: 169
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: CATVids - running a batch file with wget

Postby LotsOCds » Mon Sep 11, 2017 9:32 pm

You need to provide the full path to wget.exe in the cmd file.
Cheers,
Dave

User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CATVids - running a batch file with wget

Postby Alex Ivanovich » Mon Sep 11, 2017 9:40 pm

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:

User avatar
LotsOCds
Posts: 169
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: CATVids - running a batch file with wget

Postby LotsOCds » Mon Sep 11, 2017 10:14 pm

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.
Cheers,
Dave

User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CATVids - running a batch file with wget

Postby Alex Ivanovich » Mon Sep 11, 2017 10:35 pm

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

User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CATVids - running a batch file with wget

Postby Alex Ivanovich » Mon Sep 11, 2017 11:40 pm

I forgot :|

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

User avatar
LotsOCds
Posts: 169
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: CATVids - running a batch file with wget

Postby LotsOCds » Tue Sep 12, 2017 5:49 am

You need to be more specific. I do not know what file you are talking about or how it is created.
Cheers,
Dave

User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CATVids - running a batch file with wget

Postby Alex Ivanovich » Tue Sep 12, 2017 7:47 am

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
Attachments
file update.png
file update.png (119.09 KiB) Viewed 151 times

User avatar
LotsOCds
Posts: 169
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: CATVids - running a batch file with wget

Postby LotsOCds » Tue Sep 12, 2017 2:55 pm

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.
Cheers,
Dave

User avatar
Alex Ivanovich
Posts: 287
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CATVids - running a batch file with wget

Postby Alex Ivanovich » Tue Sep 12, 2017 3:58 pm

yes, you understand correct

thanky ;)


Return to “Using CATVids”

Who is online

Users browsing this forum: No registered users and 1 guest