Search found 221 matches: wget
Searched query: wget
- 27 May 2023 00:43
- Forum: DOS Batch Forum
- Topic: Rename filename to remove invalid characters?
- Replies: 0
- Views: 42061
Rename filename to remove invalid characters?
... to rewrite a string so that it's DOS-legit? FOR /F "delims=" %%A IN ('xidel "%1" -se "title:=//title" --output-format cmd') DO %%A echo %title% wget -O "%title%.html" "%1" Thank you. -- Edit: One way I came across: SET title=%title: =_% SET title=%title:?=% echo %title%
- 24 Sep 2022 13:13
- Forum: DOS Batch Forum
- Topic: [SOLVED] Read grep's output and send email?
- Replies: 4
- Views: 5539
Re: Read grep's output and send email?
Thanks for the tip on ERRORLEVEL . @echo off echo Looking for Something wget -qO - https://www.acme.com | grep -c "Something" IF %ERRORLEVEL% NEQ 0 (echo Not found) ELSE (echo Found) I found a simpler way to send an e-mail: mailsend.exe -t me@acme.com -f me@acme.com ...
- 24 Sep 2022 11:35
- Forum: DOS Batch Forum
- Topic: [SOLVED] Read grep's output and send email?
- Replies: 4
- Views: 5539
Re: Read grep's output and send email?
Thanks, although curl's output is full of HTML while grep only returns 0/1.
The next step is to 1) check the result, and if it's 1, send an email (eg. mail.exe -s "Found" -to me@isp.com smtp.isp.com).
Code: Select all
@echo off
echo Check something
wget -qO - https://www.acme.com | grep -c "something"
- 24 Sep 2022 10:38
- Forum: DOS Batch Forum
- Topic: [SOLVED] Read grep's output and send email?
- Replies: 4
- Views: 5539
[SOLVED] Read grep's output and send email?
... on if the pattern is found. Does someone know of 1. a way to do this in CMD 2. a single EXE email app to send e-mail through my ISP's SMTP server? wget -qO - https://www.acme.com | grep -c "Something" | <magic> Thank you.
- 04 Mar 2022 04:33
- Forum: DOS Batch Forum
- Topic: Markdown to HTML converter
- Replies: 4
- Views: 11766
Re: Markdown to HTML converter
... to make it clearer. I am not sure, if it's possible to implement md-2-html converter in pure batch without any external tools (like pandoc, wget and curl). The only way is to use online converter implementing requests to GitHub API on WSH (JScript or VBScript) which is shipped to Windows ...
- 02 Mar 2022 15:58
- Forum: DOS Batch Forum
- Topic: Markdown to HTML converter
- Replies: 4
- Views: 11766
Re: Markdown to HTML converter
... the Content-Type request header. So using BusyBox, it's possible to render a markdown to html sending a request to GitHub API with BusyBox/wget as well. Examples Render using pandoc $ echo "* text" | git-md-html -r <ul> <li>text</li> </ul> Render using GitHub API $ echo "* text" | git-md-html ...
- 04 Jan 2022 17:32
- Forum: DOS Batch Forum
- Topic: Process cannot access the file as it is used by another process
- Replies: 1
- Views: 2983
Re: Process cannot access the file as it is used by another process
... like tst_file.xml is still open somewhere because every other line in the script that you posted works correctly, so there's some issue with the wget command trying to write to a file that's in use.
- 04 Jan 2022 10:50
- Forum: DOS Batch Forum
- Topic: Process cannot access the file as it is used by another process
- Replies: 1
- Views: 2983
Process cannot access the file as it is used by another process
... cannot access the file as it is used by another process 2048 was unexpected at this time. Thanks in advance for any help. Code - @echo off d:\wget.exe ... Rem this wget process downloads tst_file.xml set file="tst_file.xml" set maxbytesize=2048 for /F "usebackq" %%A IN ('%file%') DO set size=%%~zA ...
- 12 Sep 2021 00:40
- Forum: DOS Batch Forum
- Topic: Markdown to HTML converter
- Replies: 4
- Views: 11766
Re: Markdown to HTML converter
... now I don't want to do this work. The shell version doesn't have this limitation. Also it's POSIX-ly compatible. But in some cases it fails: -- wget from BusyBox 1.34 doesn't support the --post-file option -- wget 1.11.4 from Gow (The lightweight alternative to Cygwin) fails with SSL connections ...
- 11 Sep 2021 15:37
- Forum: DOS Batch Forum
- Topic: Markdown to HTML converter
- Replies: 4
- Views: 11766
Markdown to HTML converter
... script to convert Markdown to HTML . Since that time I kept hope to combine both ways -- using local pandoc and requesting Git API using curl or wget. After all I finished my attempts on implementing the own script (the set of scripts on shell, batch and perl, in fact) converting markdown to ...
- 05 Jun 2020 10:44
- Forum: DOS Batch Forum
- Topic: Batch substring code not working
- Replies: 6
- Views: 8153
Re: Batch substring code not working
... | %~dp0\fgrep.exe -i -f - %$base% >nul call :GetUnixTime utimeafter Fixed using grep powerful command extensions. I wish cmd could have its own wget, grep, sed, parallel, .etc .
- 13 May 2020 05:41
- Forum: DOS Batch Forum
- Topic: Non-destructive access denied bypass for malware scanner
- Replies: 2
- Views: 5828
Non-destructive access denied bypass for malware scanner
... Y and then enter to terminate the program. echo. pause goto :dbpatch :dbpatch cls color B5 title MD5 scanner - Database Updates [0/4] cd /d "%~dp0\wget-1.11.4-1-bin\bin" if not exist virushashes.txt set odblinecount=0 && goto :dbpcon setlocal EnableDelayedExpansion set "cmd=findstr /R /N "^^" virushashes.txt ...
- 28 Jan 2020 01:16
- Forum: DOS Batch Forum
- Topic: Is there a way to update progress bar in Windows Vista to 10?
- Replies: 5
- Views: 9289
Re: Is there a way to update progress bar in Windows Vista to 10?
... SHIFT & GOTO PRINT FOR /F %%A IN ('COPY /Z "%~DPF0" NUL') DO SET "CR=%%A" SET "BITS_URL=https://raw.githubusercontent.com/EIGHTFINITE-Vendor/wget/wget-1.19.2-win64/wget.exe" SET "BITS_PATH=%USERPROFILE%" :Prepare REM * Prepare - Set Window COLOR 07 TITLE BITSADMIN: Downloading Wget MODE CON ...
- 28 Jan 2020 00:48
- Forum: DOS Batch Forum
- Topic: Is there a way to update progress bar in Windows Vista to 10?
- Replies: 5
- Views: 9289
Re: Is there a way to update progress bar in Windows Vista to 10?
... &goto :print for /f %%a in ('copy /Z "%~dpf0" nul') do set "CR=%%a" :: This is a part of my batch SET "WGET_URL=https://eternallybored.org/misc/wget/1.20.3/64/wget.exe" SET "WGET_PATH=%USERPROFILE%" :Prepare REM * Prepare - Set Window COLOR 07 TITLE GMK: Downloading Wget :MODE CON COLS=84 LINES=25 ...
- 17 Jan 2020 17:49
- Forum: DOS Batch Forum
- Topic: Is there a way to update progress bar in Windows Vista to 10?
- Replies: 5
- Views: 9289
Re: Is there a way to update progress bar in Windows Vista to 10?
... &goto :print for /f %%a in ('copy /Z "%~dpf0" nul') do set "CR=%%a" :: This is a part of my batch SET "WGET_URL=https://eternallybored.org/misc/wget/1.20.3/64/wget.exe" SET "WGET_PATH=%USERPROFILE%" :Prepare REM * Prepare - Set Window COLOR 07 TITLE GMK: Downloading Wget :MODE CON COLS=84 LINES=25 ...