The syntax to set up a DCC server connection to somebody is:
/fserve [nick] [max gets simultaneously allowed] [homedir] [welcome file]
"Max" gets prevents users from bringing down your machine with too many parallel gets (downloads). 4 is probably a reasonable number. The user will have access to a designated directory called the "homedir" and all dirs DOWN in the directory tree from that homedir. "Welcome file" is a text file you can
write (using a text editor like Notepad) that will welcome users to your file server. It's optional.
Examples |
/fserve pipur 3 c:\serve c:\temp\serve\welcome.txt |
/fserve Blazer 2 c:\outgoing c:\network\mirc\welcome.txt |
/fserve Maggs 7 c:\mirc\srvfiles (note: without welcome text option) |
Keep in mind that you can't set up the Fileserver and get files from yourself... you need others to test your server...
Typing help in the file server will show the available commands, which are styled after Unix and
DOS. "ls" or "dir" will show a directory listing, for example. Even switched commands like "ls -k" (show file sizes in kilobytes) and "dir /w" (show a wide directory listing) work. The server supports
all normal ftp commands like cd[dir], cd.., dir, ls, get, .... but NOT put, hash etc. See the Help Files in mIRC for more information on the available commands for File Server. Safety risks are none or minimal due to the major restricting of available commands.
Of course, the /fserve command can be used in your Remote section. Add this command line to your Remote Commands section under Tools/Remote/Commands (don't forget to check the Listening box):
ctcp 1:server:/fserve $nick 3 c:\serve c:\serve\welcome.txt
Other people only have to type /ctcp yournick server to activate the server.
You can also set up the File Server so that it can be accessed by simply typing in !yournick. Place this line in your Remote Events section under the Tools/Remote/Events section:
ON 1:TEXT:!yournick*:#:/fserve $nick 3 c:\serve c:\serve\welcome.txt
Remember, you can't get files from yourself! Others have to test your server for you!! In the directory c:\temp\serve, you place all files other people are allowed to get from you. The people using your server will have access to the c:\temp\serve directory AND ALL directories BELOW it.. like c:\temp\serve\games.
|