Solved

This script can work in WinCE?

Posted on 2002-05-14
5
647 Views
Last Modified: 2008-02-01
Experts,

Sorry i no have the WinCe Emulator, can someone tell me this script can work in WinCE or not.

Private Sub Command1_Click()
    filespec = App.Path + "\client.txt"
    Set fso = CreateObject("Scripting.FileSystemObject")
   
    Set f = fso.OpenTextFile(filespec, 1, True)
    filespec1 = f.ReadAll
   
    Set f = fso.OpenTextFile(filespec1, 2, True)
    f.WriteLine "Hello world!"
    f.Close

End Sub

I still a newbabies for WinCE programming. If this canot, how to make it can working in the WinCE?

Thanks.
0
Comment
Question by:it31
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 4

Expert Comment

by:eeyore7250
ID: 7010225
No.

In vbce you will need to add a reference to the CE File System Control

You create a filesystem object like so:
Set fso = CreateObject("FILECTL.FileSystem")

OpenTextFile of filesystem is not supported

ReadAll of the File control is not supported
0
 

Author Comment

by:it31
ID: 7010321
eeyore,

Thanks for the response, but got anyway to modify a file and use the FILECTL?

And the file is no in the local WinCE, it is in lan other 1 pc. I wish to use the application to modify the pc 1 txt file. Just this only, any idea or suggestion?

Best Regards,
0
 
LVL 4

Expert Comment

by:eeyore7250
ID: 7012823
You can use the FILECTL to read and write a file.

I dont think you can open a file from a windows ce device accross the network easily. Although you could use windows ce sockets, then you would need a host program on a pc on the network.
0
 
LVL 4

Expert Comment

by:eeyore7250
ID: 7012826
You may get more responses by posting in the windows ce category:

http://www.experts-exchange.com/wince/
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 7182382
This question will be placed in PAQ, and points refunded.

Regards,

ComTech
Community Support Administrator  
Experts-Exchange  
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question