views:

167

answers:

3

I have a bunch of files that I need to be able to transport and install quickly. My current method for doing so is moving a flash drive with a readme file of where stuff goes whenever I need to move stuff, which is rather inelegant and cumbersome.

My idea for a solution would be to write up a quick script to move files around that I could just click on. I've done some bash before but batch scripting is a little odd to me. Does anyone have a good online reference guide I could use?

An alternative soulution I could accept would be a program that makes an installer for you, though I'm a bit against that as I would lose a lot of control. However, I'd be alright with it if it was extremely simple,

+1  A: 

Sounds like robocopy is what you need.

Very powerful replication command.

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

Full command switch guide : http://atlex.nl/tmp/robocopy_switches.txt

Batch scripting guide: http://www.tacktech.com/display.cfm?ttid=307

Martin
A: 

I like to use VBscript for this kind of thing. The VBS engine is on every recent windows machine and the language is a little more like real programming than a batch script.

Also, if your installer grows to require WMI functions too, this becomes a piece of cake.

Nick
A: 

Thanks for the batch scripting guide. I just needed a quick and dirty solution. Robocopy sounded good and I'll have to remember it but I didn't end up using it.

Mike