Enable FILECTL ActiveX component on Mobile Devices
Earlier I wrote about how you could use the FILECTL component to write files on a mobile device.
A few people emailed me to tell me that they were getting the “ActiveX cannot create object CreateObject” error. So this time I’m going to go into more detail about how you first prepare the mobile device before you can use the FILECTL component.
Let’s get to it:
- Download and copy the regsvrce.exe and MSCEFile.dll to the /Windows folder on the device. There are a couple of different versions of MSCEFile.dll out there, make sure you have the correct one based on your device OS\version.
- Enable Command Prompt on the device. You can download the PPC Command Shell powertoy to do this.
NOTE: If you keep double-clicking the cmd.exe and nothing happens, here’s what you do:
a. Access the Registry and change the “OutputTo” DWORD value to 0 (zero) under HKEY_LOCAL_MACHINE\Drivers\Console. - Launch the Command Prompt window, and type “regsvrce.exe MSCEFile.dll” and press Enter.
- A pop-up message will appear saying the DLL was registered successfully.
- You’re done!
Now run your VBScript again and it should not throw any CreateObject-related errors.
Comments(1)
Hi , i need some information about the use of vbscript for write file in windows ce6. You suggest the use of MSCEFile.dll and the function CreateObject(”FILECTL.File”). But where can i download the dll? Or How can I eneabled it ? I must use platform builder?
I must write some xml file in a web server with some information about the client web browser in a submit form. I’ usins vbscript for ASP code.
Thanks
Lorenzo Manera
Hello Lorenzo,
Drop me a line at m [at] sandboxm [dot] com and I can send you the MSCEFile.dll that I have.
M
Hello, could you send me the dll file? because i don’t find it in the net and i’m having this problem while running VB scripts with WinCC flexible. do you think this problem is the same you explain here?
thanks
Hello, I’m also having trouble to find MSCEFile.dll.
Could you help me in some way?