It seems that either a dash - or a slash / will work equally well in a batch file. The two examples below are equaly valid. Which is correct? Does it depend on the operation system? If so how do I determine which to use?
shutdown -r -m \\server04 -t 01 -f shutdown /r /m \\server04 /t 01 /f
My goal is to write a batch file that will reach out to several windows severs and reboot them. The end result may also provide for pinging servers and allowing for user supplied choices on which servers to reboot. But my question is intended to define how to best format the code.
I found this related question on SO, which does not really provide an answer when to use one or the other. The question there got a lot of negativity for not being on Superuser. The majority of the opinions suggested that they used dash, but no solid rationale is given for using one over the other.