TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Windows Scripting Host (VBScript,JScript) is working too

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Wed Oct 22, 2014 5:37 am    Post subject: Windows Scripting Host (VBScript,JScript) is working too Reply with quote

I just found out that the #SCRIPT command is not just limited to the languages listed in the manual (Lua, PHP, Perl, Python, Tcl, and Ruby), but it can run virtually anything that returns something on a console...

So, because I'm on Windows, I tried to run a VBScript, and it works Smile
The only drawback is that the interpreter can only run a file, and not just an instruction, so a script file must be created for the purpose.

Code:

#system {echo "Wscript.Stdout.write \"Hello World\"" > VBScript.vbs}
#OK: EXECUTING 'echo "Wscript.Stdout.write \"Hello World\"" > VBScript.vbs'
#script {result} {cscript.exe VBScript.vbs //nologo}
#echo $result[1]
Hello World


Just posted here because maybe someone could be interested to know.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group