EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Using SolFS in window script host

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#6984
Posted: 07/17/2008 19:00:16
by squaredotmatrix  (Basic support level)
Joined: 02/16/2008
Posts: 6

Is there a way to use SolFS stream via window script host
because the "Write" method does not work e.g.

Set stg = CreateObject("SolFS.SolFSStorage.1")
Set stm = CreateObject("SolFS.SolFSStream.1")

stg.PathSeparator = 47
stg.FileName = "C:\Program Files\EldoS\SolFS\VCL\Samples\App\html.st"

stg.Open(2)
stm.Create stg, "/file.ext", "w"
stm.Write "12345", 5 '<-- Error! WSH crashes

the write methods accept only bytes which is not a automation type
I am looking for something like the TextStream Object e. g.

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close

Its a good feature for SolFS ActiveX.
#7052
Posted: 07/25/2008 08:26:46
by Eugene Mayevski (EldoS Corp.)

I appologize for the delay in answering.

We didn't test SolFS ActiveX control with WSH. We will consider updating ActiveX interfaces for SolFS 4 to make it possible to use solfs in wsh.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2448 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!