Hi, I am wondering if I can use mIRC to first copy a file, and change the variables as it goes along.

For example:
If I have the following file saved in the C drive as index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My Chat</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
	<div id="logo">
		<h1><a href="#">no-nick</a></h1>
		<h2><a href="#">Visit Main Homepage.</a></h2>
	</div>
	<div id="menu">
		<ul>
			<li class="active"><a href="#/">home</a></li>
			<li><a href="#">commands</a></li>
			<li><a href="#">about</a></li>
			<li><a href="#">support</a></li>
			<li><a href="#">contact</a></li>
		</ul>
	</div>
</div>
<!-- end header -->
<script type="text/javascript"> function toggle(obj) {
var obj=document.getElementById(obj);
if (obj.style.display == "block") obj.style.display = "none";
else obj.style.display = "block"; } </script>
<!-- start page -->
<div id="page">
	<!-- start content -->
	<div id="content">
		<!-- start latest-post -->
		<div id="latest-post" class="post">
			<h1 class="title">Welcome to your chat.</h1>
			<div class="entry">
				<p>Your current topic is: % $+ $chan $+ mytopic</p>
..................
		<div id="recent-posts">
			<div class="post">
				<h2 class="title">Lets see...</h2>
				<div class="entry">
				<p>Why?</p>
etc


When someone types a command, is there a way that I can use mIRC to copy the whole document (C:\\index.html) from that directory to another directory. (e.g. E:\\index.html)

Then, is there a way, for example if someone changes the topic, to change the varible:
Code:
<p>Your current topic is: % $+ $chan $+ mytopic </p>


So, when it is opened in a web browser it would look like:
Quote:
Your current topic is: Hi, this is my example topic.


I know this isn't a board for html scripting, but I am guessing this is more an mIRC thing than a html thing.

I am planning on having a whole load of variables that get changed as people do different things. (if that makes a difference)


Thank you very much for any help, it is much appreciated.

Last edited by seanturner70; 07/04/09 11:04 PM.