variables in batch scripts [closed]
- by richzilla
I'm trying to set up a batch file to automatically deploy a php app to a web server. Basically, what I want is an entirely automated process: I would just give it a revision number from the repository and it would then export the files, upload via ftp and then update deployment info at the repo host (codebase).
However, I'm starting from scratch here. How would I set up a batch file to accept a variable when it was run?
For example, the command myfile.bat /revision 42 should deploy revision 42 to my server.
If anyone can point me in the right direction I'd appreciate it.