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:

  1. 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.
  2. 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.
  3. Launch the Command Prompt window, and type “regsvrce.exe MSCEFile.dll” and press Enter.
  4. A pop-up message will appear saying the DLL was registered successfully.
  5. You’re done!

Now run your VBScript again and it should not throw any CreateObject-related errors.

Related Posts

4 Comments so far

  1. lorenzo on May 4th, 2009

    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

  2. M on May 15th, 2009

    Hello Lorenzo,

    Drop me a line at m [at] sandboxm [dot] com and I can send you the MSCEFile.dll that I have.

    M

  3. Nacho on February 17th, 2010

    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

  4. ale on February 21st, 2010

    Hello, I’m also having trouble to find MSCEFile.dll.
    Could you help me in some way?

Leave a reply