Sometimes you may want to run a huge script from the command line but you hesitate to type it into the DOS window. In such cases you may want to type the script into NOTEPAD where you can more easily edit and then paste it into command line. Is this possible?
Yes, you can do it. First you have to run the DOS program with elevated permission, that is as an administrator. Once you do that you can paste it into the command line.
Step 1:
Run CMD with Administrators permission.
The DOS program starts
Step 2:
Prepare your script in NOTEPAD such as the one shown here.
Highlight the script you want to run and copy it to clipboard
Step 3:
Right click in the open DOS screen to pop open drop-down menu.
Click Paste (Control-V does not work). Your text is now copied to command line.
You are done!!
Yes, you can do it. First you have to run the DOS program with elevated permission, that is as an administrator. Once you do that you can paste it into the command line.
Step 1:
Run CMD with Administrators permission.
The DOS program starts
Step 2:
Prepare your script in NOTEPAD such as the one shown here.
Highlight the script you want to run and copy it to clipboard
Step 3:
Right click in the open DOS screen to pop open drop-down menu.
Click Paste (Control-V does not work). Your text is now copied to command line.
You are done!!
1 comment:
Dear Hodentek,
It's a small piece of instruction, but did a lot of help and time saving for me.
By the way, your designing of answer page is superb. It doesn't leave room for any doubt or confusion. Keep it up.
Thanking
Hussain KH from Kerala, India
hussain.rachana@gmail.com
Post a Comment