string $myScriptPath = "C:/myScript.mel" ;
source $myScriptPath ;
It will produce a syntax error. So, how do we do it then? One method is by using the "eval" command and putting the source command into the string itself and slashing out the quotes.
string $command = "source \"C:/script.mel\" ;" ;
eval $command ;
"eval" will run the string as a command, thus sourcing it and your script/variable.
Another option here is to create your own proc, let's call it betterSource() ;
global proc betterSource (string $script) {
string $command = "source \""+$script+"\"";
eval $command ;
}
// Now you can run:
string $path = "C:/script.mel" ;
betterSource $path ;
Either way works and one is not necessarily better than the other.
The virtual data room contains strictly confidential data and documents with restrictions and controlled access on viewing, copying or printing. A virtual data room provider allows documents to be accessed by regulators and investors in a timely manner during the allowed time period.
ReplyDelete