Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am developing a .net web application on a local environment. I have a dev server that the application is installed on. Within the web application on the dev server I have four folders that I dont have locally and that are controlled by another application.

In my day to day development I require the four folders on local PC. I would like to automate the process of pulling the folders from the dev server to my local drive, so I can keep thing in sync. Ideally something like this

Run file from main folder (be it a bat file, powershell, some sort of job, open to recommendations) Download 4 folders supplied to it. First download bring everything down, from them on only pull the changes

Not sure where to start with achieving this but would appreciate any help would with. I know there are apps out there that do something like this but would like to give a go writing something to do this before I resort to using one of them.

share|improve this question
    
Anyone that could help me out with this or even a starting point? –  Niall Collins Jan 12 '11 at 0:37

1 Answer 1

if those folders ale somewhere in local network (and you have access from dev server there) then batch file running robocopy should suit your needs:

http://en.wikipedia.org/wiki/Robocopy

It is really great tool. Additionally you could have to add "net use" command to that batch (it depends on user rights).

Hope that helps.

share|improve this answer
    
They arent on the local network but are on a web server. I could include a step in the process to map a drive to the server. Would that work? –  Niall Collins Jan 14 '11 at 0:04
    
Only if you could access shares from that server using Windows explorer (you could have vpn connection for instance). If servers are located on separate networks (accross Internet), then quite simple solution is to make those four folders available through ftp and create batch script with wget task to synchronize folders on local drive. –  rsc Jan 14 '11 at 7:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.