![]() |
How to create a custom site command?
Hello,
I would like to implement the following custom site command: site giveaccess <user> The command is supposed to execute the following site command: SITE CHANGE <user> VFSFILE ..\etc\private.vfs Thanx a lot in advance for your help, Bobby. |
Code:
#include <stdio> |
and where do I add this?
|
copy code to file and save as giveaccess.cpp
compile with borland c++ compiler http://www.borland.com/products/down...cbuilder.html# Code:
bcc32.exe -w- -O2 -Ipath.to\BCC55\Include -Lpath.to\BCC55\Lib -npath\to\where\u\wanna\this\exe -egiveaccess.exe path\to\giveaccess.cpp Code:
givaaccess = exec path\to\giveaccess.exe permission Code:
giveacces = 1 |
|
You could have just used a simple batch file...
Code:
@ECHO OFF |
Sorry NeoXed for posting in the wrong section. Will try to do it right next time :>
Many thanks to both of u for your help. Bye, Bobby. |
Quote:
And...can the custom commands be added to a batch file too this same way, i.e. ECHO !<command> <params>, or just native ioftpd commands? |
The !change command provides the same functionality for scripts, as the SITE CHANGE <target> <option> <parameters> command does for users.
|
Can any site command custom or otherwise, be used in a batch file this way?
|
All times are GMT -5. The time now is 04:02 AM. |
Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)