Discuss using and your tips/tricks for CATVids
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by 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
-

- execute cmd file + error Dos
- wget cmd.png (215.33 KiB) Viewed 1164 times
-
LotsOCds
- Posts: 177
- Joined: Thu Aug 20, 2015 4:23 am
- Location: California, USA
Post
by LotsOCds » Mon Sep 11, 2017 9:32 pm
You need to provide the full path to wget.exe in the cmd file.
Cheers,
Dave
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by 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?

-
LotsOCds
- Posts: 177
- Joined: Thu Aug 20, 2015 4:23 am
- Location: California, USA
Post
by 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?

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
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by 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
this can help me?
viewtopic.php?f=8&t=260#p1312
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by Alex Ivanovich » Mon Sep 11, 2017 11:40 pm
I forgot
after updating the file, it can display a text with the update date
example:
file updated 12.09.2017
-
LotsOCds
- Posts: 177
- Joined: Thu Aug 20, 2015 4:23 am
- Location: California, USA
Post
by 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
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by 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 (119.09 KiB) Viewed 1141 times
-
LotsOCds
- Posts: 177
- Joined: Thu Aug 20, 2015 4:23 am
- Location: California, USA
Post
by 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