Guest User

Untitled

a guest
Jan 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ::For convenience
  2. @cscript //nologo "%~dp0lessc.wsf" %*
  3.  
  4. From a command prompt;
  5. assoc .cmd
  6. should return with
  7. ..cmd=cmdfile
  8. If not
  9. assoc .cmd=cmdfile
  10. to restore the default file type association.
  11.  
  12. ftype cmdfile
  13. should return with
  14. cmdfile="%1" %*
  15. If not
  16. ftype cmdfile="%1" %*
  17. to restore the default "Open" action for the file type.
  18.  
  19. C:Intel Intel is not recognized as an internal or external command, operable program or batch file.
  20.  
  21. where less.*
  22.  
  23. echo Running less.cmd (as %0) with parameters %*
Add Comment
Please, Sign In to add comment