Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PIE jscript ActiveX Scripting.FileSystemObject

19 views
Skip to first unread message

Nicolas WIllmann

unread,
Nov 18, 2004, 3:25:03 PM11/18/04
to
Hello,
I want to list and write files with jscript on HTML files on a pocket pc
with CE 2003.
These are local files on pocketpc. So PIE should no complains about security
issues.
On standard "Windows" Internet Explorer, we should use the ActiveX
"Scripting.FileSystemObject" and so on objects.
What I understand (and what I found on the web), is :
On pocketpc this ActiveX does not exists. It is replaced by something like
"FILECTL.FileSystem" which is found in a DLL called MSCEFile.dll and must be
registered with a tool like regsvrce.exe
I first download EVC and SDK 2003 and I dont find this stuff.
Then I download SDK 2002, and I found the DLL.

But this does not seems to work with a dumb example, found on newgroups,
like :

<html>
<head>
<script language="JScript">
function pippo(){
alert("init");
var fso;
var f;
fso = new ActiveXObject("FILECTL.FileSystem");
alert("fso ActiveXObject");
f = new ActiveXObject("FILECTL.File");
alert("file ActiveXObject");
f.Open ("\\test.txt", 2);
alert("Open");
f.Close();
alert("Close");
}
</script>
</head>
<body onload="pippo()">
<p>body</p>
</body>
</html>

Bad dll registration ? bad script ? or incompatibilities with 2002/2003 OS
versions ?
Have you some ideas.
What is the corresponding DLL for SDK 2003 ?
Is anyone has better examples to show how to use these activeX in jscript ?

thanks.
Nicolas WILLMANN


TH

unread,
Nov 19, 2004, 10:01:09 AM11/19/04
to
I'm not sure about the device, but now a days, I think you can't even do that
in the desktop platforms due to security concerns

John Spaith [MS]

unread,
Nov 19, 2004, 3:39:21 PM11/19/04
to
TH is right - there are huge security concerns with these objects. If the
desktop disabled it, they had a good reason. I'm sure the web page you
write to manipulate the filesystem objects will be well-behaved. But
suppose that a user ends up getting redirected to a site that is malicious
and does bad things with the filesystem object?

WinCE does not have support for these objects. I think embedded visual
basic may have something like FILECTL.FileSystem, though I'm not sure. I'm
pretty sure you can't run that from PIE -- actually due to security issues I
really really hope you cannot, at least without a lot of hacking.

On the newsgroup microsoft.public.windowsce.embedded.vb, post thread [asp]
read file on windows ce, someone asked for the same thing and a fellow
actually said he implemented the File System Object. You may try contacting
him and seeing if he'll give you the FSO code. Be sure to ask him if it is
safe for PIE. (There's ways you can make it more safe, but I forget the
details.) I didn't gripe on the other thread about security because the
fellow is using FSO on an ASP device where CE is the Web Server and hence he
has control over what he runs, unlike the PIE case.

Standard MS legalize is that I can't vouch for the fellow with the FSO, so
if you have problems don't complain to us. It's lame I have to say that
because I'm sure you knew it anyway, but lawyers are lame too.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.

"TH" <T...@discussions.microsoft.com> wrote in message
news:49CB9609-F594-4391...@microsoft.com...

Nicolas WIllmann

unread,
Nov 23, 2004, 3:57:20 PM11/23/04
to
Finally, I found a solution on the web.
It is the freeware "axgate" from www.newobjects.com
I would prefer some cleaner and integrated solution from MS, but ...
thanks for your responses.
Nicolas Willmann.


0 new messages