Thanks RoryB
I tested the next script on WindowsPC and WinCE Device Emulator and it's running correctly:
But I tested the same script on PNA device with WindowsCE and is not running correctly.
This lines (move all .txt files to backup directory)
Result: .txt files didn't move to backup directory
It is running only with this lines (move only Log.txt file to backup directory)
I tested the next script on WindowsPC and WinCE Device Emulator and it's running correctly:
Code:
int=FileModifyTime("\SDMMC\Logfiles\Log.txt")
message (int)
FileModifyTime =FormatTime( "d.m.Y_H.i.s", int +3600)
message (FileModifyTime)
createTime = SystemPath("ScriptPath")\ FileModifyTime&i&".cfg"
sleep (500)
If (FileExists("\SDMMC\Logfiles\Log.txt"))
Rename ("\SDMMC\Logfiles\Log.txt", createTime, 1)
Endif
sleep (500)
If(NOT DirExists("\SDMMC\Backup"))
MkDir ("\SDMMC\Backup")
Endif
sleep (500)
If (FileExists("\SDMMC\Logfiles\*.txt"))
Move ("\SDMMC\Logfiles\*.txt", "\SDMMC\Backup", 1)
EndIf
sleep (500)
Copy( "\SDMMC\Documents\Log.txt", "\SDMMC\Logfiles\Log.txt")
sleep (500)
Exit
But I tested the same script on PNA device with WindowsCE and is not running correctly.
This lines (move all .txt files to backup directory)
Code:
If (FileExists("\SDMMC\Logfiles\*.txt"))
Move ("\SDMMC\Logfiles\*.txt", "\SDMMC\Backup", 1)
EndIf
sleep (500)
Result: .txt files didn't move to backup directory
It is running only with this lines (move only Log.txt file to backup directory)
Code:
If (FileExists("\SDMMC\Logfiles\Log.txt"))
Move ("\SDMMC\Logfiles\Log.txt", "\SDMMC\Backup", 1)
EndIf
sleep (500)
Last edited: