A demo of how to run code from a pdf file (it can be any file extention, for the sake of simplicity, pdf files are used for this demo)
- Click on
Code
and download as a zip file. - Extract the file.
- Navigate to
Downloads\PdfToBatch-main\PdfToBatch-main\source
and double click on theRenamePdfToBat.bat
. - You might get a warning that Windows Defender protected your PC. Ignore the warning and click on run anyway.
- It should change
change.pdf
tochange.bat
and execute the code insidechange.pdf