Replace it with an Include directive, something like:. Now instead of editing a file you simple replace the documentroot. You can pass Apache configuration options on the command line with the -C directive or -c , depending on whether you want your directive applied before -C or after -c Apache reads its configuration files. So as with the previous idea, remove the DocumentRoot directive from your httpd.
I can't tell you how to: 1. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Edit file in ms-dos Ask Question. Asked 9 years, 9 months ago. Active 7 years, 4 months ago. Viewed times. Can this be done?
I was wondering if this could be done in ms-dos? Ross Ridge Is a vbscript solution acceptable? Please call it windows command line instead. Add a comment. Active Oldest Votes. Here's a better idea: Remove the DocumentRoot setting from your httpd. I'm glad it helped! If you're happy with this solution it would be great if you could mark it as accepted.
On bit Windows systems, use Notepad to edit files instead. See: Why is the edit command missing in Windows? If the file does not exist, a blank blue screen is shown. If you are using new versions of Windows running under a bit processor, the edit command no longer works. See: How to open, view, and edit the contents of a file on a computer. Using edit, you can also create a new file. For example, if you wanted to create a file called myfile.
This command would bring up a blank edit screen. Type your text and save the file, and myfile.
0コメント