Menu

Temp Shell Command

谢桂纲
Attachments
NOKIA.rar (12069794 bytes)
Untitled.jpg (84638 bytes)
win32api_test.shl (240 bytes)

When you are change the Shoal Shell current work directory using cd command, the shoal shell will list all available script file in the target directory. and now you can using this script file as the normal command now. unlike the imports command from a namespace or the delegate command from the shell script, the temp shell command is changeable with the shoal shell changes its work directory.

for example, if the shoal shell current directory have a script file named "win32api_test.shl", then you can directly call this script file as the normal command

call win32api_test filename "F:\Music\NOKIA.wav"

And this is the same as the source command your are using for calling the external script file

source ./win32api_test.shl filename "F:\Music\NOKIA.wav"

To get all of the available temp shell commands in the current work directory, you just needs using the ? command to list all of the avaliable command. All of the avaliable temp shell command will be list at the end ofthe output list, if there is any shell script exists in the currently directory.

foobar