EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Using SolFS in window script host

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
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 (Team)

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 2836 times

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


Back to top

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

Got it!