EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Using SolFS in window script host

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
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"

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.")

Its a good feature for SolFS ActiveX.
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



Topic viewed 2393 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!