Solved

This script can work in WinCE?

Posted on 2002-05-14
5
639 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now