I have a batch downloader which downloads files from my github server.
User can enter a file name but, if it doesn’t exists it saves the file but inside is 404: not fond
(I’m downloading using curl)
I tired doing this:
set /p check=<“%pkg_name%”
if %check%==404: Not found goto exit
I found on the internet that you can check for this using php.