Advertisement
jcunews

TextFileViewer.bat

Apr 15th, 2022
1,423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.30 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement