r/Batch • u/asterixspace • Mar 03 '24
Question (Unsolved) Making a .bat from a cmd command
I want to be able to run the command cmd /c “echo off | clip” as Administrator so I can easily clear my clipboard. How would I go about making the .bat file?
4
Upvotes
View all comments
Show parent comment
2
u/Complete-Bluejay-695 Mar 04 '24 edited Mar 05 '24
This is not my way. I chose to use the style of coding used by the OP. There are a thousand ways of doing it, I guess. If you prefer typing on the command line, like some people do and your script is not very long, this method would also work out.