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)