copy files and folders from server to server

T

Tom

Every week our web guys publish the web site to all of our servers by
logging into the server and doing a copy - paiste. We want to elminate the
developers from logging into each server and doing this, so we want to
create them a windows app that allows them to copy the web folder from their
machine and publish it to each server.

Is there a way to do this? We want to do the following:

1) be able to connect to the web servers without having the developers log
into it.

2) stop IIS

3) rename the web site they are copying over. (ie: if they're copying
NewSales, we want to rename NewSales to NewSales_Todays date).

4) Allow the developer to select the web site on their pc to copy, click the
'publish' button and then copy all the files needed for the web site. Now,
these are .NET web sites so we only need the aspx files, the bin folder,
image folder and other folder within that web site they are copying over.
However we do not need the .CS, .VB, .VSS, SLN, .scc, etc.) we only want the
..htm, .aspx, web.config, .xml, .js files and all of the associated folders
with only the files needed to run the site.

Is it possible to do this and its it possible to copy only the files needed
from server to server?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


Of course you can do it, even better you can do it directly from a DOS .BAT
file :)

just create a bat file with the sequence of xcopy/ren commands and it will
do it.

I know there is a command line way of stopping IIS , I just can't remember
it right now.
 
T

Tom

We want the developers to have a GUI and the ability to select what web site
they want to copy over from server to server.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Then just simply create the GUI and call the bat file with the correct
paths.
You can do the entire thing in C# just that it has not too much sense doing
it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top