Start a vbs from the resources

1

My question is simple, would it be possible to start a vbs from the resources using process start and reading the manifest of the file? Or is the only way possible is by writing to disk?

Assembly.GetExecutingAssembly() .GetManifestResourceStream("script.vbs"))

And then start it using process start :

Process.Start(cscript.exe Assembly.GetExecutingAssembly() .GetManifestResourceStream("script.vbs")))
    
asked by Sergio Ramos 10.05.2018 в 15:19
source

0 answers