variables in batch scripts
Posted
by richzilla
on Stack Overflow
See other posts from Stack Overflow
or by richzilla
Published on 2010-04-20T22:02:58Z
Indexed on
2010/04/20
23:03 UTC
Read the original article
Hit count: 161
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.
© Stack Overflow or respective owner