12/2/2020 2:22 PM | |
Posts: 5 Rating:
|
I am trying to delete the old file, it does not delete. What are the problems? thanks Dim objFile ------------------------------------------------------------------------------------------ |
Last edited by: chupas1986 at: 12/02/2020 14:36:29Last edited by: Jen_Moderator at: 12/03/2020 08:04:25New subject after splitting |
|
12/3/2020 4:10 PM | |
Joined: 7/5/2013 Last visit: 4/25/2025 Posts: 3149 Rating:
|
Hello chupas,
in my opinion "objFolder.Files" does not work with "FileCtl.Filesystem". Check the following link: Differences between the VB script functions of Windows and WinCE It would help to use some kind of error handler in such scripts to find out why it doesn't work. The error handler could look like the following lines (at least at the end of the script) and requires a "On Error Resume Next" in the beginning of the script:
Then you can check in the system alarms if there is a problem in the script.
I guess "Now()" is a value in miliseconds. Regards, Frink
|
Pi is exactly three! |
|
This contribution was helpful to
1 thankful Users |
12/4/2020 8:32 AM | |
Posts: 5 Rating:
|
Dear Prof.Frink, Good afternoon, thanks for the help and the answer to my question. Now I wrote each line deliberately, but there is an error in line 12 - "Object not a collection". Give advice please.
|
Last edited by: chupas1986 at: 12/04/2020 08:40:19Last edited by: chupas1986 at: 12/04/2020 08:46:43Last edited by: chupas1986 at: 12/04/2020 09:07:54Last edited by: Jen_Moderator at: 12/04/2020 11:59:00Edited text for better reading. |
|
Follow us on