In the directory /etc/rc.d
there are subdirs called rc?.d
ranging from 1 through to 6. In these are symlinks to other files in /etc/rc.d/init.d
. The links begin either with an S to start a service or a K to kill it. The number represents at what stage (I believe) the service is to be started, so if it depends on something else, it can be started later. Put it simply, since samba doesn't depend on anything else, in /etc/rc.d/rc3.d
you'd make a symlink to /etc/rc.d/init.d/smb
and then when you boot (or change to runlevel 3) the samba service will start. This does not mean that it will mount any remote shares at bootup, that's something different. And all of this can be found if you search.
Most of us will already know how to do stuff in DOS, thankyou.