S
Sharon Byers
We have one test web server and 3 production servers. We need to keep the
prod servers in synch.
Whenever I update a file (*.asp) I have to copy it from the test server to
the corresponding folder on the other three servers. I have batch files to
do this for the simplest cases - where I'm copying from the few most used
directories.
But what I'd like is a way to be logged into the test server folder and just
type at the command line:
webcopy myfile.asp
and have the batch file identify the current directory and copy it to the
corresponding directory on the 3 prod servers.
I don't want to have to type out the long path, like
"\myweb\mydir1\subdir1\subdir2\subdir3\subdir4" 3 or 4 times. And I don't
want to use the Windows folder tree.
I can't find an environment variable that captures the current location
without the drive letter and colon, and I've only written simple batch
files.
Here's what the batch file would do for me:
copy myfile x:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
copy myfile y:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
copy myfile z:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
I'd appreciate any help. Thanks.
prod servers in synch.
Whenever I update a file (*.asp) I have to copy it from the test server to
the corresponding folder on the other three servers. I have batch files to
do this for the simplest cases - where I'm copying from the few most used
directories.
But what I'd like is a way to be logged into the test server folder and just
type at the command line:
webcopy myfile.asp
and have the batch file identify the current directory and copy it to the
corresponding directory on the 3 prod servers.
I don't want to have to type out the long path, like
"\myweb\mydir1\subdir1\subdir2\subdir3\subdir4" 3 or 4 times. And I don't
want to use the Windows folder tree.
I can't find an environment variable that captures the current location
without the drive letter and colon, and I've only written simple batch
files.
Here's what the batch file would do for me:
copy myfile x:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
copy myfile y:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
copy myfile z:\myweb\mydir1\subdir1\subdir2\subdir3\subdir4
I'd appreciate any help. Thanks.