Create web pages by using the copy command
Top  Previous  Next


The default web page in the "how to create and delete 100 Internet-enabled accounts in five minutes" examples are created by this [Batch] line

DOS echo %username% - nothing here yet...>%HomeRoot%\%username%\WWW\default.htm

More advanced pages can easily be created by using the copy command -

·Create the file c:\temp\1.txt with this text  

<html><head><title> 

·Create the file c:\temp\3.txt with this text  

</title></head><body bgcolor="#FFFFFF"><h3>This is the future home page of 

·Create the file c:\temp\5.txt with this text  

</h3></body></html>

·Add this line to the [Settings] section  

SET T=c:\temp\

·Add these lines to the [Batch] section (full name in [Data] column 1) Notice the "/b" in the end of the copy command.  

DOS md %HomeRoot%\%username%       
DOS md %HomeRoot%\%username%\WWW   
DOS echo %col1%>%T%2.txt   
DOS copy %T%1.txt+%T%2.txt+%T%3.txt+%T%2.txt+%T%5.txt %HomeRoot%\%username%\WWW\default.htm /b


Result