Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

Vbscript question: running script from another script without creating a file - possible?

$
0
0

@Jarek wrote:

Hi All,

I am currently running a new vbscript from my main RhinoScript by creating the 2nd script 'on the fly' from array of strings and writing it to external secondfile.vbs file, then using WshShell.Run "C:\secondfile.vbs" I need it to keep running while the main RhinoScript is running as well.

The problem I have is, since I have to repeat it many times during runtime, writing the new vbs file using FSO slows the process down a bit on every creation/execution - I am trying to eliminate that. Is there a way to run a vbscript from the memory, without creating a physical file on HD? Looking for a way to get my script as strings and execute directly as independent vbscript. Thanks in advance for any suggestions.

-jarek

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles