Advertisement
jcunews

TextFileViewer.bat

Apr 15th, 2022
840
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3. set "fn=e:\my dir\my file.txt"
  4. mshta "javascript:document.write('<body style=\'font-family:monospace;white-space:pre\'><script>document.body.innerText=(new ActiveXObject(\'scripting.filesystemobject\')).opentextfile(document.title=\'%fn:\=\\\\%\').readall()</script>');document.close()"
  5.  
Advertisement
RAW Paste Data Copied
Advertisement