Log in

View Full Version : startup commands


Celeste
09-20-2002, 05:47 PM
hi, I am interested in making a startup command that will goto the directory currently in my clipboard. Now I have successfully made a command that works while on the site.
command name in command editor is clipcommand.
CWD /Today
CWD %c
LIST -al

so when i use it in the drop down menu commands>clipcommand it goes into the today folder then into the folder in my clipboard then lists. that works perfectly. Problem is when adding this command to the advanced tab inside site manager so that it is performed on startup of the site.
CWD /Today
CWD %c
LIST -al

when logging in it does this

CWD /Today
250 CWD command successful.
CWD %c
550 %c: No such file or directory.
LIST -al

as you can see its not processing the %c. now i am not a scriptor or programmer at all so i dont know how to fix this

i also tried adding the command name to the perform on startup section
clipcommand

when logging in does this

clipcommand
500 'CLIPCOMMAND': Command not understood.


... any help is greatly appreciated. thanks

bigstar
09-20-2002, 11:46 PM
The "perform on connect event" didn't support custom command macro's, support will be added into the next build.

FYI the following code will cause problems.
CWD /Today
CWD %c

The correct way would be to use
&cd /Today
&cd %c

CWD sends the command directly to the ftp server while &cd tells FlashFXP to change directory.